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 |