11 #define CLOCK_REALTIME 0
12 #define CLOCK_MONOTONIC 1
int timer_settime(timer_t timerid, int flags, const struct itimerspec *new_value, struct itimerspec *old_value)
Arm or disarm the timer specified by the timer ID.
Definition: time.c:94
int clock_settime(clockid_t clockid, const struct timespec *tp)
Set the time of the specified clock ID.
Definition: time.c:77
int timer_create(clockid_t clockid, struct sigevent *sevp, timer_t *timerid)
Create a new per-thread interval timer.
Definition: time.c:82
int clock_getres(clockid_t clockid, struct timespec *res)
Get the resolution (precision) of the specified clock ID.
Definition: time.c:62
int timer_gettime(timer_t timerid, struct itimerspec *curr_value)
Return the timer interval and the time until next expiration.
Definition: time.c:102
int clock_gettime(clockid_t clockid, struct timespec *tp)
Retrieve the time of the specified clock ID.
Definition: time.c:72
int timer_delete(timer_t timerid)
Delete the timer specified with the timer ID.
Definition: time.c:89