The POSIX-TIMERS API is a compatible implementation of the POSIX 1003.1 real-time clock/timer API. This feature is simply a library that might or might not be linked with an application. It is not a feature that can be turned on or off when configuring a system.
The POSIX timers API is summarized in the following table:
Function |
Description |
---|---|
clock_settime() |
Set clock to a specified value |
clock_gettime() |
Get value of clock |
clock_getres() |
Get resolution of clock |
nanosleep() |
Delay the current thread with high resolution |
timer_create() |
Create a timer |
timer_delete() |
Delete a timer |
timer_settime() |
Set and arm or disarm a timer |
timer_gettime() |
Get remaining interval for an active timer |
timer_getoverrun() |
Get current overrun count for a timer |