/// Run a benchmark with an environment, specifying the run time limit.
///
/// See [bench_env](fn.bench_env.html)
Run a benchmark with an environment, specifying the run time limit.
Run a benchmark with an environment specifying the run time limit .
pub fn bench_env_limit<F, I, O>(time_limit_secs: f64, env: I, f: F) -> Stats where F: Fn(I) -> O, I: Clone {
    run_bench(time_limit_secs, env,
        |xs| {
            for i in xs.into_iter() {
                pretend_to_use(f(i));             // Run the code and pretend to use the output
            }
        }
    )
}
pub fn bench_env_limit < F , I , O > ( time_limit_secs : f64 , env : I , f : F ) -> Stats where F : Fn ( I ) -> O , I : Clone { run_bench ( time_limit_secs , env , | xs | { for i in xs . into_iter ( ) { pretend_to_use ( f ( i ) ) ; // Run the code and pretend to use the output } } ) }
Run a benchmark with an environment, specifying the run time limit.
Run a benchmark with an environment specifying the run time limit .
time_limit_secs
f64
env
I
f
F