measure

Function measure 

Source
fn measure<T>(operation: impl FnOnce() -> T) -> (T, Duration)