18 #pragma GCC system_header 19 #include_next <time.h> 21 #ifndef _COBALT_TIME_H 22 #define _COBALT_TIME_H 25 #include_next <time.h> 26 #include <cobalt/wrappers.h> 27 #include <cobalt/uapi/time.h> 36 struct timespec *tp));
39 struct timespec *tp));
42 const struct timespec *tp));
44 COBALT_DECL(
int, clock_adjtime(clockid_t clock_id,
49 const struct timespec *rqtp,
50 struct timespec *rmtp));
52 COBALT_DECL(time_t, time(time_t *t));
54 COBALT_DECL(
int,
nanosleep(
const struct timespec *rqtp,
55 struct timespec *rmtp));
58 const struct sigevent *__restrict__ evp,
59 timer_t * __restrict__ timerid));
65 const struct itimerspec *value,
66 struct itimerspec *ovalue));
69 struct itimerspec *value));
int timer_create(clockid_t clockid, const struct sigevent *__restrict__ evp, timer_t *__restrict__ timerid)
Create a timer
Definition: timer.c:75
int clock_getres(clockid_t clock_id, struct timespec *tp)
Get the resolution of the specified clock.
Definition: clock.c:101
int timer_gettime(timer_t timerid, struct itimerspec *value)
Get timer next expiration date and reload value.
Definition: timer.c:212
int timer_delete(timer_t timerid)
Delete a timer object.
Definition: timer.c:107
int timer_getoverrun(timer_t timerid)
Get expiration overruns count since the most recent timer expiration signal delivery.
Definition: timer.c:247
int timer_settime(timer_t timerid, int flags, const struct itimerspec *__restrict__ value, struct itimerspec *__restrict__ ovalue)
Start or stop a timer
Definition: timer.c:168
int clock_settime(clockid_t clock_id, const struct timespec *tp)
Set the specified clock.
Definition: clock.c:239
int nanosleep(const struct timespec *rqtp, struct timespec *rmtp)
Sleep some amount of time.
Definition: clock.c:356
int clock_gettime(clockid_t clock_id, struct timespec *tp)
Read the specified clock.
Definition: clock.c:183
int clock_nanosleep(clockid_t clock_id, int flags, const struct timespec *rqtp, struct timespec *rmtp)
Sleep some amount of time.
Definition: clock.c:311