time_fn

Function time_fn 

Source
pub fn time_fn<T>(f: impl FnOnce() -> T) -> (T, Duration)
Expand description

Time a function execution and return the result + duration