TizenRT Libs&Environment  v2.0 M2
time.h File Reference
#include <tinyara/config.h>
#include <sys/types.h>
#include <stdint.h>
Include dependency graph for time.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  timespec
 structure represents an elapsed time More...
 
struct  timeval
 structure represents an elapsed time More...
 
struct  timezone
 
struct  tm
 Structure containing a calendar date and time. More...
 
struct  itimerspec
 Struct itimerspec is used to define settings for an interval timer. More...
 

Macros

#define EXTERN   extern
 

Functions

int clock_settime (clockid_t clockid, FAR const struct timespec *tp)
 clock and timer functions More...
 
int clock_gettime (clockid_t clockid, FAR struct timespec *tp)
 clock and timer functions More...
 
int clock_getres (clockid_t clockid, FAR struct timespec *res)
 clock and timer functions More...
 
clock_t clock (void)
 returns the implementation's best approximation to the processor time used by the process since the beginning of a implementation-defined era related only to the process invocation. More...
 
time_t mktime (FAR struct tm *tp)
 convert broken-down time into time since the Epoch More...
 
FAR struct tmgmtime (FAR const time_t *timer)
 convert a time value to a broken-down UTC time More...
 
FAR struct tmgmtime_r (FAR const time_t *timer, FAR struct tm *result)
 convert a time value to a broken-down UTC time More...
 
size_t strftime (char *s, size_t max, FAR const char *format, FAR const struct tm *tm)
 convert date and time to a string More...
 
char * strptime (const char *buf, const char *fmt, struct tm *tm)
 convert a time string to a time tm structure More...
 
double difftime (time_t time1, time_t time0)
 calculate time difference More...
 
time_t time (FAR time_t *tloc)
 get time More...
 
int timer_create (clockid_t clockid, FAR struct sigevent *evp, FAR timer_t *timerid)
 create a per-process timer More...
 
int timer_delete (timer_t timerid)
 delete a per-process timer More...
 
int timer_settime (timer_t timerid, int flags, FAR const struct itimerspec *value, FAR struct itimerspec *ovalue)
 per-process timers More...
 
int timer_gettime (timer_t timerid, FAR struct itimerspec *value)
 per-process timers More...
 
int nanosleep (FAR const struct timespec *rqtp, FAR struct timespec *rmtp)
 high-resolution sleep More...
 
#define CLK_TCK   (100)
 
#define CLOCKS_PER_SEC   (100)
 
#define CLOCK_REALTIME   0
 
#define TIMER_ABSTIME   1
 
#define localtime(c)   gmtime(c)
 POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More...
 
#define localtime_r(c, r)   gmtime_r(c, r)
 POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/) More...
 
#define TM_YEAR_BASE   1900
 
typedef uint32_t time_t
 
typedef uint8_t clockid_t
 
typedef FAR void * timer_t
 

Macro Definition Documentation

#define EXTERN   extern

Definition at line 230 of file time.h.