Module time

Source
Expand description

Time-related operations.

Structs§

Timespec
struct timespec—A quantity of time in seconds plus nanoseconds.

Enums§

ClockId
clockid_t CLOCK_* constants for use with clock_gettime.
DynamicClockId
clockid_t CLOCK_* constants for use with clock_gettime_dynamic.

Functions§

clock_getres
clock_getres(id)—Returns the resolution of a clock.
clock_gettime
clock_gettime(id)—Returns the current value of a clock.
clock_gettime_dynamic
Like clock_gettime but with support for dynamic clocks.
clock_settime
clock_settime(id, timespec)—Sets the current value of a settable clock.

Type Aliases§

Nsecs
A type for the tv_nsec field of Timespec.
Secs
A type for the tv_sec field of Timespec.