Available on crate feature time only.
Expand description

Time-related operations.

Structs

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

Enums

CLOCK_* constants for use with clock_gettime.
CLOCK_* constants for use with clock_gettime_dynamic.
CLOCK_* constants for use with timerfd_create.

Functions

clock_getres(id)—Returns the resolution of a clock.
clock_gettime(id)—Returns the current value of a clock.
Like clock_gettime but with support for dynamic clocks.
timerfd_create(clockid, flags)—Create a timer.
timerfd_gettime(clockid, flags)—Query a timer.
timerfd_settime(clockid, flags, new_value)—Set the time on a timer.

Type Definitions

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