2 constant CLOCKS_PER_SEC
8 #if !defined ISO && !defined ISO99
11 element {struct timespec} time_t tv_sec
12 element {struct timespec} long tv_nsec
21 element {struct tm} int tm_sec
22 element {struct tm} int tm_min
23 element {struct tm} int tm_hour
24 element {struct tm} int tm_mday
25 element {struct tm} int tm_mon
26 element {struct tm} int tm_year
27 element {struct tm} int tm_wday
28 element {struct tm} int tm_yday
29 element {struct tm} int tm_isdst
31 function clock_t clock (void)
32 function double difftime (time_t, time_t)
33 function time_t mktime (struct tm*)
34 function time_t time (time_t*)
35 function {char*} asctime (const struct tm*)
36 function {char*} ctime (const time_t*)
37 function {struct tm*} gmtime (const time_t*)
38 function {struct tm*} localtime (const time_t*)
39 function size_t strftime (char*, size_t, const char*, const struct tm*)
41 function int timespec_get (struct timespec *, int)
44 #if !defined ISO && !defined ISO99 && !defined ISO11
45 # if !defined XOPEN21K && !defined XOPEN2K8 && !defined POSIX2008
48 constant CLOCK_PROCESS_CPUTIME_ID
49 constant CLOCK_THREAD_CPUTIME_ID
51 type {struct itimerspec}
53 element {struct itimerspec} {struct timespec} it_interval
54 element {struct itimerspec} {struct timespec} it_value
56 constant CLOCK_REALTIME
57 constant TIMER_ABSTIME
58 constant CLOCK_MONOTONIC
63 # if defined XOPEN2K8 || defined POSIX2008
69 # if !defined POSIX && !defined POSIX2008
70 variable int getdate_err
73 function {char*} asctime_r (const struct tm*, char*)
74 function int clock_getcpuclockid (pid_t, clockid_t*)
75 function int clock_getres (clockid_t, struct timespec*)
76 function int clock_gettime (clockid_t, struct timespec*)
77 function int clock_nanosleep (clockid_t, int, const struct timespec*, struct timespec*)
78 function int clock_settime (clockid_t, const struct timespec*)
79 function {char*} ctime_r (const time_t*, char*)
80 # if !defined POSIX && !defined POSIX2008
81 function {struct tm*} getdate (const char*)
83 function {struct tm*} gmtime_r (const time_t*, struct tm*)
84 function {struct tm*} localtime_r (const time_t*, struct tm*)
85 function int nanosleep (const struct timespec*, struct timespec*)
86 # if defined XOPEN2K8 || defined POSIX2008
87 function size_t strftime_l (char*, size_t, const char*, const struct tm*, locale_t)
89 # if !defined POSIX && !defined POSIX2008
90 function {char*} strptime (const char*, const char*, struct tm*)
92 function int timer_create (clockid_t, struct sigevent*, timer_t*)
93 function int timer_delete (timer_t)
94 function int timer_gettime (timer_t, struct itimerspec*)
95 function int timer_getoverrun (timer_t)
96 function int timer_settime (timer_t, int, const struct itimerspec*, struct itimerspec*)
97 function void tzset (void)
99 # if !defined POSIX && !defined POSIX2008
100 variable int daylight
101 variable {long int} timezone
103 variable {char*} tzname [2]