Skip to main content

finish_probe_timer

Function finish_probe_timer 

Source
pub fn finish_probe_timer<B: Backend>(
    timer: Option<B::Timer>,
    ctx: &mut B::Context,
) -> Option<u64>
Expand description

Close a timer started by [start_probe_timer] and return the elapsed microseconds. None propagates the “disabled” state so the caller can keep the if let Some(us) = ... { record(us) } pattern.