Expand description
Clocks, timestamps, and high-resolution sleep syscalls.
Structs§
- Timespec
- Seconds and nanoseconds timestamp matching the 64-bit kernel
struct timespec. - Timeval
- Seconds and microseconds timestamp matching the 64-bit kernel
struct timeval.
Constants§
- CLOCK_
MONOTONIC - Monotonic clock identifier (cannot jump backwards).
- CLOCK_
REALTIME - System-wide real-time clock identifier.
- TIMER_
ABSTIME - Flag indicating an absolute target time for
clock_nanosleep.
Functions§
- clock_
gettime - Queries the current value of
clock_id. - clock_
gettime_ syscall - Queries the current value of
clock_idvia theCLOCK_GETTIMEsyscall. - clock_
settime - Sets the time of
clock_idtots. - nanosleep
- Sleeps for the relative interval
reqonCLOCK_MONOTONIC, optionally writing any remaining duration intoremif interrupted.