Module time

Source
Available on crate feature time only.
Expand description

Time-related operations.

Structs§

TimerfdFlags
TFD_* flags for use with timerfd_create.
TimerfdTimerFlags
TFD_TIMER_* flags for use with timerfd_settime.

Enums§

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

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.
timerfd_create
timerfd_create(clockid, flags)—Create a timer.
timerfd_gettime
timerfd_gettime(clockid, flags)—Query a timer.
timerfd_settime
timerfd_settime(clockid, flags, new_value)—Set the time on a timer.

Type Aliases§

Itimerspec
struct itimerspec for use with timerfd_gettime and timerfd_settime.
Nsecs
A type for the tv_sec field of Timespec.
Secs
A type for the tv_sec field of Timespec.
Timespec
struct timespec