4 * Struct and function declarations for dealing with time.
20 /* Get _CLOCKS_PER_SEC_ */
21 #include <machine/time.h>
23 #ifndef _CLOCKS_PER_SEC_
24 #define _CLOCKS_PER_SEC_ 1000
27 #define CLOCKS_PER_SEC _CLOCKS_PER_SEC_
28 #define CLK_TCK CLOCKS_PER_SEC
32 /* Get _CLOCK_T_ and _TIME_T_. */
33 #include <machine/types.h>
35 #ifndef __clock_t_defined
36 typedef _CLOCK_T_ clock_t;
37 #define __clock_t_defined
40 #ifndef __time_t_defined
41 typedef _TIME_T_ time_t;
42 #define __time_t_defined
58 clock_t _EXFUN(clock, (void));
59 double _EXFUN(difftime, (time_t _time2, time_t _time1));
60 time_t _EXFUN(mktime, (struct tm *_timeptr));
61 time_t _EXFUN(time, (time_t *_timer));
63 char *_EXFUN(asctime, (const struct tm *_tblock));
64 char *_EXFUN(ctime, (const time_t *_time));
65 struct tm *_EXFUN(gmtime, (const time_t *_timer));
66 struct tm *_EXFUN(localtime,(const time_t *_timer));
68 size_t _EXFUN(strftime, (char *_s, size_t _maxsize, const char *_fmt, const struct tm *_t));
70 char *_EXFUN(asctime_r, (const struct tm *, char *));
71 char *_EXFUN(ctime_r, (const time_t *, char *));
72 struct tm *_EXFUN(gmtime_r, (const time_t *, struct tm *));
73 struct tm *_EXFUN(localtime_r, (const time_t *, struct tm *));
76 #ifndef __STRICT_ANSI__
77 extern time_t _timezone __declspec(dllimport);
78 extern int _daylight __declspec(dllimport);
79 extern char *_tzname[2] __declspec(dllimport);
81 char *_EXFUN(timezone, (void));
82 void _EXFUN(tzset, (void));
84 #endif /* __CYGWIN32__ */
.