home *** CD-ROM | disk | FTP | other *** search
- /* time.h Struct and function declarations for dealing with time. */
- #ifndef _TIME_H_
- #define _TIME_H_
- typedef unsigned long clock_t;
- typedef unsigned long time_t;
- #define CLOCKS_PER_SEC 1000 /* Machine dependent */
- #define _TIME_T_DEFINED
- 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;
- };
- unsigned int clock(void);
- double difftime(unsigned int _time2, unsigned int _time1);
- unsigned int mktime(struct tm *_timeptr);
- unsigned int time(unsigned int *_timer);
- char *asctime(const struct tm *_tblock);
- char *ctime(const unsigned int *_time);
- struct tm *gmtime(const unsigned int *_timer);
- struct tm *localtime(const unsigned int *_timer);
- unsigned int strftime(char *_s, unsigned long _maxsize, char *_fmt, struct tm *_t);
- char *_asctime_r(struct tm *_tblock, void *_p);
- #endif /* _TIME_H_ */
-