#ifndef __TIME_H #define __TIME_H #ifndef _SIZE_T #define _SIZE_T typedef unsigned size_t; #endif #ifndef _TIME_T #define _TIME_T typedef long time_t; #endif #ifndef _CLOCK_T #define _CLOCK_T typedef long clock_t; #endif #define CLOCKS_PER_SEC 1000.0 #define CLK_TCK 1000.0 struct tm { int tm_sec; int tm_min; int tm_hour; int tm_mday; int tm_mon; int tm_year; int tm_wday; int tm_yday; int tm_isdst; }; #ifdef __cplusplus extern "C" { #endif extern time_t _time(time_t *__timer); extern clock_t clock(void); #ifdef __cplusplus } #endif #endif /* __TIME_H */