pub fn measure<W, F>( repeat: u32, writer: Option<Box<W>>, template: DataPoint, func: Box<F>) -> Result<()> where W: Write, F: FnMut() -> Result<(i64, Duration)>,