Available on crate feature
time only.Expand description
Time-related operations.
Structs§
- Itimerspec
linux_kernelor FreeBSD or Fuchsia or illumos or NetBSD struct itimerspecfor use withtimerfd_gettimeandtimerfd_settime.- Timerfd
Flags TFD_*flags for use withtimerfd_create.- Timerfd
Timer Flags TFD_TIMER_*flags for use withtimerfd_settime.- Timespec
struct timespec—A quantity of time in seconds plus nanoseconds.
Enums§
- ClockId
Non-WASI clockid_tCLOCK_*constants for use withclock_gettime.- Dynamic
Clock Id Non-WASI clockid_tCLOCK_*constants for use withclock_gettime_dynamic.- Timerfd
Clock Id CLOCK_*constants for use withtimerfd_create.
Functions§
- clock_
getres Neither Redox nor WASI clock_getres(id)—Returns the resolution of a clock.- clock_
gettime Non-WASI clock_gettime(id)—Returns the current value of a clock.- clock_
gettime_ dynamic Non-WASI - Like
clock_gettimebut with support for dynamic clocks. - clock_
settime Neither Redox, nor WASI, nor appleand non-macOS clock_settime(id, timespec)—Sets the current value of a settable clock.- timerfd_
create linux_kernelor FreeBSD or Fuchsia or illumos or NetBSD timerfd_create(clockid, flags)—Create a timer.- timerfd_
gettime linux_kernelor FreeBSD or Fuchsia or illumos or NetBSD timerfd_gettime(clockid, flags)—Query a timer.- timerfd_
settime linux_kernelor FreeBSD or Fuchsia or illumos or NetBSD timerfd_settime(clockid, flags, new_value)—Set the time on a timer.