pub fn measure<F, T>(f: F) -> (Duration, T)where F: FnOnce() -> T,
Measures the time taken by f to execute, returning a pair of (Duration, T).
f
(Duration, T)