Module time

Source
Expand description

The core AtomicTime for real-time and static clocks.

This module provides an atomic time abstraction that supports both real-time and static clocks. It ensures thread-safe operations and monotonic time retrieval with nanosecond precision.

Structs§

AtomicTime
Represents an atomic timekeeping structure.

Statics§

ATOMIC_CLOCK_REALTIME
Global atomic time in real-time mode for use across the system.
ATOMIC_CLOCK_STATIC
Global atomic time in static mode for use across the system.

Functions§

duration_since_unix_epoch
Returns the duration since the UNIX epoch.
get_atomic_clock_realtime
Returns a static reference to the global atomic clock in real-time mode.
get_atomic_clock_static
Returns a static reference to the global atomic clock in static mode.
nanos_since_unix_epoch
Returns the current UNIX time in nanoseconds.