Function get_monotonic_timestamp_ns

Source
pub fn get_monotonic_timestamp_ns() -> u64
Expand description

Get monotonic timestamp for performance measurements (NOT epoch time)

This is a convenience function that creates a Clock and returns monotonic time. Use this for performance measurements, durations, and intervals.

WARNING: This is NOT epoch time - do not use for persistence or external APIs!