pub fn time<F, R>(operation: &str, f: F) -> Rwhere F: FnOnce() -> R,
Time a closure (if profiling is enabled).