Module time
Available on crate feature
std only.Expand description
Time utilities providing a high-performance, cached wall clock.
Structs§
- Atomic
Instant - A monotonic instant stored in a single
AtomicU64as nanoseconds since a shared process epoch (seenow_monotonic_nanos).
Functions§
- now_
monotonic_ nanos - Returns monotonic nanoseconds elapsed since a fixed process epoch.
- now_
system_ time - Returns an approximate system time using approximate unix timestamp.
- now_
unix - Returns an approximate unix timestamp in seconds.
- now_
unix_ ms - Returns an approximate unix timestamp in milliseconds.
- time_
modulo_ index - Returns a rotating index in range
0..lenderived from current unix ms time. - unix_
timestamp_ millis - Returns the current unix timestamp in milliseconds by reading the system clock.