time_exec

Function time_exec 

Source
pub fn time_exec<F, T>(f: F) -> (T, Duration)
where F: FnOnce() -> T,
Expand description

Time execution of a closure, returning (result, elapsed).