llvm-mos-sdk
time.h
Go to the documentation of this file.
1 // Stub implementation of time.h.
2 
3 #ifndef _TIME_H_
4 #define _TIME_H_
5 
6 #include <stddef.h>
7 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 
12 typedef long long time_t;
13 typedef long clock_t;
14 
15 struct tm {
16  int tm_sec;
17  int tm_min;
18  int tm_hour;
19  int tm_mday;
20  int tm_mon;
21  int tm_year;
22  int tm_wday;
23  int tm_yday;
24  int tm_isdst;
25 };
26 
27 struct timespec {
29  long tv_nsec;
30 };
31 
32 clock_t clock(void);
33 time_t time(time_t *timep);
34 time_t mktime(struct tm *timep);
35 struct tm *gmtime(const time_t *timep);
36 struct tm *localtime(const time_t *timep);
37 size_t strftime(char *s, size_t maxsize, const char *format,
38  const struct tm *timep);
39 char *asctime(const struct tm *timep);
40 char *ctime(const time_t *timep);
41 
42 #ifdef __cplusplus
43 }
44 #endif
45 
46 #endif // not _TIME_H_
time_t mktime(struct tm *timep)
long clock_t
Definition: time.h:13
char * ctime(const time_t *timep)
size_t strftime(char *s, size_t maxsize, const char *format, const struct tm *timep)
char * asctime(const struct tm *timep)
struct tm * localtime(const time_t *timep)
struct tm * gmtime(const time_t *timep)
long long time_t
Definition: time.h:12
clock_t clock(void)
time_t time(time_t *timep)
Definition: time.h:27
long tv_nsec
Definition: time.h:29
time_t tv_sec
Definition: time.h:28
Definition: time.h:15
int tm_mon
Definition: time.h:20
int tm_year
Definition: time.h:21
int tm_hour
Definition: time.h:18
int tm_sec
Definition: time.h:16
int tm_isdst
Definition: time.h:24
int tm_yday
Definition: time.h:23
int tm_mday
Definition: time.h:19
int tm_min
Definition: time.h:17
int tm_wday
Definition: time.h:22