Skip to main content

window_micros

Function window_micros 

Source
pub fn window_micros(span: Duration) -> u64
Expand description

The microseconds a configured window spans, rounded up.

This is the only rounding-up conversion: a sub-microsecond window is one microsecond, never zero, so a caller that set a 500 ns window cannot end up with a zero-length one. A span too long for the microsecond range clamps to u64::MAX.