Skip to main content

timed

Function timed 

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

Execute a closure while recording its duration.

Timing is recorded only when enabled via set_timing_enabled.