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) 175 #ifdef CONFIG_LIBC_LOCALTIME 207 #if defined(__cplusplus) 208 #define EXTERN extern "C" 211 #define EXTERN extern 255 #ifdef CONFIG_LIBC_LOCALTIME 275 size_t strftime(
char *s,
size_t max, FAR
const char *format, FAR
const struct tm *
tm);
277 #ifdef CONFIG_ENABLE_IOTIVITY 282 char *strptime(
const char *buf,
const char *fmt,
struct tm *
tm);
286 #ifdef CONFIG_HAVE_DOUBLE 335 int timer_getoverrun(
timer_t timerid);
356 #if defined(__cplusplus) FAR struct tm * gmtime_r(FAR const time_t *timer, FAR struct tm *result)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int timer_settime(timer_t timerid, int flags, FAR const struct itimerspec *value, FAR struct itimerspec *ovalue)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int clock_getres(clockid_t clockid, FAR struct timespec *res)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int clock_gettime(clockid_t clockid, FAR struct timespec *tp)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
Structure for elements that define a queue signal. The following is used to attach a signal to a mess...
#define localtime(c)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
time_t time(FAR time_t *tloc)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int timer_delete(timer_t timerid)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
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)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int timer_gettime(timer_t timerid, FAR struct itimerspec *value)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
size_t strftime(char *s, size_t max, FAR const char *format, FAR const struct tm *tm)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int clock_settime(clockid_t clockid, FAR const struct timespec *tp)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
Structure containing a calendar date and time.
structure represents an elapsed time
FAR struct tm * gmtime(FAR const time_t *timer)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int timer_create(clockid_t clockid, FAR struct sigevent *evp, FAR timer_t *timerid)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
#define localtime_r(c, r)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)