61 #ifndef __INCLUDE_TIME_H 62 #define __INCLUDE_TIME_H 68 #include <tinyara/config.h> 70 #include <sys/types.h> 90 #ifdef CONFIG_USEC_PER_TICK 91 #define CLK_TCK (1000000/CONFIG_USEC_PER_TICK) 92 #define CLOCKS_PER_SEC (1000000/CONFIG_USEC_PER_TICK) 95 #define CLOCKS_PER_SEC (100) 109 #define CLOCK_REALTIME 0 116 #ifdef CONFIG_CLOCK_MONOTONIC 117 #define CLOCK_MONOTONIC 1 122 #define TIMER_ABSTIME 1 124 #ifndef CONFIG_LIBC_LOCALTIME 132 #define localtime(c) gmtime(c) 138 #define localtime_r(c, r) gmtime_r(c, r) 180 #if defined(CONFIG_LIBC_LOCALTIME) || defined(CONFIG_TIME_EXTENDED) 213 #if defined(__cplusplus) 214 #define EXTERN extern "C" 217 #define EXTERN extern 273 #ifdef CONFIG_LIBC_LOCALTIME 299 size_t strftime(
char *s,
size_t max, FAR
const char *format, FAR
const struct tm *
tm);
305 #if defined(CONFIG_LIBC_LOCALTIME) || defined(CONFIG_TIME_EXTENDED) 309 FAR
char *asctime(FAR
const struct tm *tp);
313 FAR
char *asctime_r(FAR
const struct tm *tp, FAR
char *buf);
317 FAR
char *ctime(FAR
const time_t *timep);
321 FAR
char *ctime_r(FAR
const time_t *timep, FAR
char *buf);
327 #ifdef CONFIG_ENABLE_IOTIVITY 332 char *strptime(
const char *buf,
const char *fmt,
struct tm *
tm);
336 #ifdef CONFIG_HAVE_DOUBLE 395 int timer_getoverrun(
timer_t timerid);
417 #if defined(__cplusplus) FAR struct tm * gmtime_r(FAR const time_t *timer, FAR struct tm *result)
convert a time value to a broken-down UTC time
int timer_settime(timer_t timerid, int flags, FAR const struct itimerspec *value, FAR struct itimerspec *ovalue)
per-process timers
int clock_getres(clockid_t clockid, FAR struct timespec *res)
clock and timer functions
int clock_gettime(clockid_t clockid, FAR struct timespec *tp)
clock and timer functions
Structure for elements that define a queue signal. The following is used to attach a signal to a mess...
#define localtime(c)
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
time_t time(FAR time_t *tloc)
get time
int timer_delete(timer_t timerid)
delete a per-process timer
int nanosleep(FAR const struct timespec *rqtp, FAR struct timespec *rmtp)
high-resolution sleep
structure represents an elapsed time
Struct itimerspec is used to define settings for an interval timer.
time_t mktime(FAR struct tm *tp)
convert broken-down time into time since the Epoch
int timer_gettime(timer_t timerid, FAR struct itimerspec *value)
per-process timers
size_t strftime(char *s, size_t max, FAR const char *format, FAR const struct tm *tm)
convert date and time to a string
int clock_settime(clockid_t clockid, FAR const struct timespec *tp)
clock and timer functions
struct timespec it_interval
Structure containing a calendar date and time.
structure represents an elapsed time
FAR struct tm * gmtime(FAR const time_t *timer)
convert a time value to a broken-down UTC time
int timer_create(clockid_t clockid, FAR struct sigevent *evp, FAR timer_t *timerid)
create a per-process timer
#define localtime_r(c, r)
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)