1 #ifndef SYS_TIME_H_INCLUDED
2 #define SYS_TIME_H_INCLUDED
5 * sys/time.h either doesn't exist on Windows, or doesn't necessarily
6 * have the below stuff.
9 /* The guards are for MinGW64, which defines these structs on its
10 system headers which are included by ms-w32.h. */
14 long tv_sec
; /* seconds */
15 long tv_usec
; /* microseconds */
19 #ifndef _TIMEZONE_DEFINED
22 int tz_minuteswest
; /* minutes west of Greenwich */
23 int tz_dsttime
; /* type of dst correction */
27 void gettimeofday (struct timeval
*, struct timezone
*);
34 struct timeval it_interval
; /* timer interval */
35 struct timeval it_value
; /* current value */
38 int getitimer (int, struct itimerval
*);
39 int setitimer (int, struct itimerval
*, struct itimerval
*);
41 #endif /* SYS_TIME_H_INCLUDED */
43 /* end of sys/time.h */