Expand description
Time-related syscalls: clock_gettime, nanosleep, clock_nanosleep
Structs§
- Time
Spec - POSIX-style timestamp: seconds + nanoseconds.
Constants§
- CLOCK_
MONOTONIC - Clock IDs for clock_gettime (POSIX-compatible subset)
- CLOCK_
REALTIME - TIMER_
ABSTIME 🔒 - Flag for clock_nanosleep: request is an absolute time based on the clock.
Functions§
- current_
time_ ns - Get current monotonic time in nanoseconds since boot.
- sys_
clock_ gettime - SYS_CLOCK_GETTIME: Get current time for the specified clock.
- sys_
clock_ nanosleep - SYS_CLOCK_NANOSLEEP: Sleep with clock selection and absolute/relative mode.
- sys_
nanosleep - SYS_NANOSLEEP: Sleep for a specified duration.