monotonic_now_ns

Function monotonic_now_ns 

Source
pub fn monotonic_now_ns() -> u64
Expand description

Best-effort monotonic-ish timestamp in nanoseconds.

On Linux, uses clock_gettime(CLOCK_MONOTONIC_RAW) when available, falling back to CLOCK_MONOTONIC.

On non-Linux platforms, falls back to SystemTime (not strictly monotonic) to keep the code portable.