The following declarations are found in the header file time.h. The declarations have been simplified. Conditional compile parts and inline definitions have been omitted.
typedef long clock_t;
typedef unsigned size_t;
typedef long time_t;
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;
};
#define CLOCKS_PER_SEC 1000.0 #define CLK_TCK 1000.0
#if !defined(__STDC__) /* NON-ANSI */ #define daylight _daylight #define timezone _timezone #define tzname _tzname #endif #if !defined(_RTLDLL) || defined(__FLAT__) extern int _daylight; extern long _timezone; extern char * const _tzname[2]; #else int * __getDaylight(void); long * __getTimezone(void); char * * __getTzname(void); #define _daylight (*__getDaylight()) #define _tzname ( __getTzname()) #define _timezone (*__getTimezone()) #endif
/* Conversion Functions */ char * asctime (const struct tm * Structured); char * ctime (const time_t * Scalar); struct tm * gmtime (const time_t * Scalar); struct tm * localtime (const time_t * Scalar); time_t mktime (struct tm * Structured); /* Elapsed Time Functions */ clock_t clock (void); /* Current Time Functions */ time_t time (time_t * timer); /* Other Functions */ size_t strftime (char * TimeStr, size_t MaxSize, const char * Format, const struct tm * Structured); size_t _lstrftime (char * TimeStr, size_t MaxSize, const char * Format, const struct tm * Structured); double difftime (time_t time2, time_t time1); int stime (time_t * Structured); void tzset (void); char * _strdate (char * DateStr); char * _strtime (char * TimeStr);