6#ifndef ZEPHYR_INCLUDE_POSIX_TIME_H_
7#define ZEPHYR_INCLUDE_POSIX_TIME_H_
14#ifdef CONFIG_NEWLIB_LIBC
26#ifndef __timespec_defined
51# if defined(CONFIG_ARCH_POSIX) && defined(CONFIG_EXTERNAL_LIBC)
52# include <bits/types/struct_timespec.h>
53# include <bits/types/struct_itimerspec.h>
69#define CLOCK_REALTIME 1
72#ifndef CLOCK_PROCESS_CPUTIME_ID
73#define CLOCK_PROCESS_CPUTIME_ID 2
76#ifndef CLOCK_THREAD_CPUTIME_ID
77#define CLOCK_THREAD_CPUTIME_ID 3
80#ifndef CLOCK_MONOTONIC
81#define CLOCK_MONOTONIC 4
85#define TIMER_ABSTIME 4
116#include_next <time.h>
_TIME_T_ time_t
Definition: _timespec.h:14
#define MSEC_PER_SEC
number of milliseconds per second
Definition: sys_clock.h:92
#define NSEC_PER_MSEC
number of nanoseconds per millisecond
Definition: sys_clock.h:86
int timer_gettime(timer_t timerid, struct itimerspec *its)
int clock_gettime(clockid_t clock_id, struct timespec *ts)
int timer_settime(timer_t timerid, int flags, const struct itimerspec *value, struct itimerspec *ovalue)
int clock_getres(clockid_t clock_id, struct timespec *ts)
int clock_nanosleep(clockid_t clock_id, int flags, const struct timespec *rqtp, struct timespec *rmtp)
int nanosleep(const struct timespec *rqtp, struct timespec *rmtp)
int clock_getcpuclockid(pid_t pid, clockid_t *clock_id)
int timer_create(clockid_t clockId, struct sigevent *evp, timer_t *timerid)
int timer_delete(timer_t timerid)
int timer_getoverrun(timer_t timerid)
int clock_settime(clockid_t clock_id, const struct timespec *ts)
flags
Definition: parser.h:96
int pid_t
Definition: posix_types.h:25
unsigned long timer_t
Definition: posix_types.h:39
uint32_t clockid_t
Definition: posix_types.h:35
__INT32_TYPE__ int32_t
Definition: stdint.h:74
Definition: timespec.h:12
struct timespec it_interval
Definition: timespec.h:13
struct timespec it_value
Definition: timespec.h:14
Definition: _timespec.h:22
long tv_nsec
Definition: _timespec.h:24
time_t tv_sec
Definition: _timespec.h:23