Skip to main content

timed

Function timed 

Source
pub fn timed<T>(fingerprint: &str, f: impl FnOnce() -> T) -> T
Expand description

Helper: measure f and record the result under fingerprint. Returns the value produced by f.