Function core_extensions::measure_time::measure

source ยท
pub fn measure<F, T>(f: F) -> (Duration, T)
where F: FnOnce() -> T,
Expand description

Measures the time taken by f to execute, returning a pair of (Duration, T).