Skip to main content

Module time

Module time 

Available on crate feature std only.
Expand description

Time utilities providing a high-performance, cached wall clock.

Structs§

AtomicInstant
A monotonic instant stored in a single AtomicU64 as nanoseconds since a shared process epoch (see now_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..len derived from current unix ms time.
unix_timestamp_millis
Returns the current unix timestamp in milliseconds by reading the system clock.