time_operation

Function time_operation 

Source
pub fn time_operation<T, F: FnOnce() -> T>(operation: F) -> (T, Duration)