Module rustix::time
The portability is definied by:
#[cfg(not(windows))]
Documentation
Time-related operations.
Enums
CLOCK_*
constants for use with clock_gettime
.
CLOCK_*
constants for use with clock_gettime_dynamic
.
Functions
clock_getres any(linux_raw, all(libc, not(any(target_os = "redox", target_os = "wasi"))))
clock_getres(id)
—Returns the resolution of a clock.
clock_gettime any(linux_raw, all(libc, not(target_os = "wasi")))
clock_gettime(id)
—Returns the current value of a clock.
clock_gettime_dynamic any(linux_raw, all(libc, not(target_os = "wasi")))
Like clock_gettime
but with support for dynamic clocks.