Zephyr Project API 3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
time.h File Reference
#include <time.h>
#include <sys/timespec.h>
#include <zephyr/kernel.h>
#include <errno.h>
#include "posix_types.h"
#include <zephyr/posix/signal.h>

Go to the source code of this file.

Macros

#define CLOCK_REALTIME   1
 
#define CLOCK_PROCESS_CPUTIME_ID   2
 
#define CLOCK_THREAD_CPUTIME_ID   3
 
#define CLOCK_MONOTONIC   4
 
#define TIMER_ABSTIME   4
 

Functions

int clock_gettime (clockid_t clock_id, struct timespec *ts)
 
int clock_getres (clockid_t clock_id, struct timespec *ts)
 
int clock_settime (clockid_t clock_id, const struct timespec *ts)
 
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_gettime (timer_t timerid, struct itimerspec *its)
 
int timer_settime (timer_t timerid, int flags, const struct itimerspec *value, struct itimerspec *ovalue)
 
int timer_getoverrun (timer_t timerid)
 
int nanosleep (const struct timespec *rqtp, struct timespec *rmtp)
 
int clock_nanosleep (clockid_t clock_id, int flags, const struct timespec *rqtp, struct timespec *rmtp)
 

Macro Definition Documentation

◆ CLOCK_MONOTONIC

#define CLOCK_MONOTONIC   4

◆ CLOCK_PROCESS_CPUTIME_ID

#define CLOCK_PROCESS_CPUTIME_ID   2

◆ CLOCK_REALTIME

#define CLOCK_REALTIME   1

◆ CLOCK_THREAD_CPUTIME_ID

#define CLOCK_THREAD_CPUTIME_ID   3

◆ TIMER_ABSTIME

#define TIMER_ABSTIME   4

Function Documentation

◆ clock_getcpuclockid()

int clock_getcpuclockid ( pid_t  pid,
clockid_t clock_id 
)

◆ clock_getres()

int clock_getres ( clockid_t  clock_id,
struct timespec ts 
)

◆ clock_gettime()

int clock_gettime ( clockid_t  clock_id,
struct timespec ts 
)

◆ clock_nanosleep()

int clock_nanosleep ( clockid_t  clock_id,
int  flags,
const struct timespec rqtp,
struct timespec rmtp 
)

◆ clock_settime()

int clock_settime ( clockid_t  clock_id,
const struct timespec ts 
)

◆ nanosleep()

int nanosleep ( const struct timespec rqtp,
struct timespec rmtp 
)

◆ timer_create()

int timer_create ( clockid_t  clockId,
struct sigevent evp,
timer_t timerid 
)

◆ timer_delete()

int timer_delete ( timer_t  timerid)

◆ timer_getoverrun()

int timer_getoverrun ( timer_t  timerid)

◆ timer_gettime()

int timer_gettime ( timer_t  timerid,
struct itimerspec its 
)

◆ timer_settime()

int timer_settime ( timer_t  timerid,
int  flags,
const struct itimerspec value,
struct itimerspec ovalue 
)