nautilus_common::timer

Function create_valid_interval

Source
pub const fn create_valid_interval(interval_ns: u64) -> NonZeroU64
Expand description

Creates a valid nanoseconds interval that is guaranteed to be positive.

ยงPanics

This function panics:

  • If interval_ns is zero.