time_and_record

Function time_and_record 

Source
pub fn time_and_record<T>(timer: &Timer, f: impl FnOnce() -> T) -> T
Expand description

Time a function and record the duration in the provided timer