6#ifndef ZEPHYR_INCLUDE_POSIX_TIME_H_
7#define ZEPHYR_INCLUDE_POSIX_TIME_H_
14#ifdef CONFIG_NEWLIB_LIBC
26#ifndef __timespec_defined
51# ifdef CONFIG_ARCH_POSIX
52# include <bits/types/struct_timespec.h>
53# include <bits/types/struct_itimerspec.h>
69#define CLOCK_REALTIME 1
72#ifndef CLOCK_MONOTONIC
73#define CLOCK_MONOTONIC 4
77#define TIMER_ABSTIME 4
85#ifdef CONFIG_ARCH_POSIX
103#ifndef CONFIG_ARCH_POSIX
104#include <syscalls/time.h>
111#include_next <time.h>
_TIME_T_ time_t
Definition: _timespec.h:14
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 nanosleep(const struct timespec *rqtp, struct timespec *rmtp)
int timer_create(clockid_t clockId, struct sigevent *evp, timer_t *timerid)
int timer_delete(timer_t timerid)
int clock_settime(clockid_t clock_id, const struct timespec *ts)
#define MSEC_PER_SEC
Definition: sys_clock.h:133
#define NSEC_PER_MSEC
Definition: sys_clock.h:127
flags
Definition: parser.h:96
unsigned long timer_t
Definition: posix_types.h:35
uint32_t clockid_t
Definition: posix_types.h:31
__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