Skip to main content

end_debug_span

Function end_debug_span 

Source
pub fn end_debug_span(
    log_state: &LogStateRef,
    now_ms: f64,
    timer: Option<&LogTimer>,
) -> f64
Expand description

Closes a span opened by begin_debug_span (TS endDebugSpan), emitting its elapsed-time Debug entry and returning the elapsed milliseconds. A None timer (debug was disabled when the span opened) is a no-op returning -1, the “not measured” sentinel.