Skip to main content

Module time

Module time 

Source
Expand description

Time-related syscalls: clock_gettime, nanosleep

Structs§

TimeSpec

Constants§

CLOCK_MONOTONIC
Clock IDs for clock_gettime (POSIX-compatible subset)
CLOCK_REALTIME

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_nanosleep
SYS_NANOSLEEP: Sleep for a specified duration.