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 
14 struct timespec {
16  long tv_nsec;
17 };
18 
19 typedef int clockid_t;
20 
21 #define CLOCK_REALTIME ((clockid_t)0)
22 
23 long clock(void);
24 int clock_getres(clockid_t clock_id, struct timespec *res);
25 int clock_gettime(clockid_t clock_id, struct timespec *tp);
26 int clock_settime(clockid_t clock_id, const struct timespec *tp);
27 
28 #ifdef __cplusplus
29 }
30 #endif
31 
32 #endif // not _TIME_H_
clockid_t
int clockid_t
Definition: time.h:19
clock_settime
int clock_settime(clockid_t clock_id, const struct timespec *tp)
clock
long clock(void)
clock_gettime
int clock_gettime(clockid_t clock_id, struct timespec *tp)
timespec::tv_nsec
long tv_nsec
Definition: time.h:16
timespec::tv_sec
time_t tv_sec
Definition: time.h:15
time_t
long long time_t
Definition: time.h:12
clock_getres
int clock_getres(clockid_t clock_id, struct timespec *res)
timespec
Definition: time.h:14