Skip to main content

duration_micros

Function duration_micros 

Source
pub fn duration_micros(elapsed: Duration) -> u32
Expand description

Clamped Duration -> microsecond sample: a tick phase measured in hours would mean the process already hung far worse than this profiler needs to describe, so this saturates at u32::MAX rather than panicking or widening every sample to a u128.