[−][src]Function benchmarking::bench_function
pub fn bench_function<F, O>(f: F) -> Result<MeasureResult, BenchmarkError> where
F: FnMut(&mut Measurer) -> O + 'static,
Run a function for 5 seconds and measure its execution time.
pub fn bench_function<F, O>(f: F) -> Result<MeasureResult, BenchmarkError> where
F: FnMut(&mut Measurer) -> O + 'static,
Run a function for 5 seconds and measure its execution time.