Function latency

Source
pub fn latency(f: impl FnOnce()) -> Duration
Expand description

Invokes f once and returns its latency.