Module rustix::time

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.

Type Definitions

A type for the tv_nsec field of Timespec.

A type for the tv_sec field of Timespec.

struct timespec