Skip to main content

time

Function time 

Source
pub fn time<F, R>(operation: &str, f: F) -> R
where F: FnOnce() -> R,
Expand description

Time a closure (if profiling is enabled).