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
76#define NSEC_PER_MSEC (NSEC_PER_USEC * USEC_PER_MSEC)
79#define TIMER_ABSTIME 4
87#ifdef CONFIG_ARCH_POSIX
105#ifndef CONFIG_ARCH_POSIX
106#include <syscalls/time.h>
113#include_next <time.h>
_TIME_T_ time_t
Definition: _timespec.h:14
flags
Definition: http_parser.h:131
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)
#define NSEC_PER_MSEC
Definition: time.h:76
int clock_settime(clockid_t clock_id, const struct timespec *ts)
#define MSEC_PER_SEC
Definition: sys_clock.h:130
unsigned long timer_t
Definition: posix_types.h:31
uint32_t clockid_t
Definition: posix_types.h:27
__INT32_TYPE__ int32_t
Definition: stdint.h:44
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