time.h (351B)
1 #ifndef _TIME_H 2 #define _TIME_H 3 4 #include <stddef.h> 5 6 typedef long time_t; 7 typedef long clock_t; 8 9 struct tm { 10 int tm_sec; 11 int tm_min; 12 int tm_hour; 13 int tm_mday; 14 int tm_mon; 15 int tm_year; 16 int tm_wday; 17 int tm_yday; 18 int tm_isdst; 19 }; 20 21 time_t time(time_t *t); 22 clock_t clock(void); 23 24 #define CLOCKS_PER_SEC 1000000L 25 26 #endif