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§
- Atomic
Time - 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.