Function benchmarking::bench_function_with_duration
source · pub fn bench_function_with_duration<F, O>(
duration: Duration,
f: F
) -> Result<MeasureResult, BenchmarkError>
Expand description
Run a function with a specific duration and measure its execution time.