pub fn simple_benchmark<U, F: FnOnce() -> U>(f: F)
std
Runs the given function and prints the elapsed time. It supports stable Rust.
fn bench_foo() { testutils::simple_benchmark(|| { foo() // Your code here... }) }