]> code.delx.au - gnu-emacs/blob - nt/inc/sys/time.h
* window.h (struct window): Replace hchild, vchild and buffer slots
[gnu-emacs] / nt / inc / sys / time.h
1 #ifndef SYS_TIME_H_INCLUDED
2 #define SYS_TIME_H_INCLUDED
3
4 /*
5 * sys/time.h either doesn't exist on Windows, or doesn't necessarily
6 * have the below stuff.
7 */
8
9 /* The guards are for MinGW64, which defines these structs on its
10 system headers which are included by ms-w32.h. */
11 #ifndef _W64
12 struct timeval
13 {
14 long tv_sec; /* seconds */
15 long tv_usec; /* microseconds */
16 };
17 #endif
18
19 #ifndef _TIMEZONE_DEFINED
20 struct timezone
21 {
22 int tz_minuteswest; /* minutes west of Greenwich */
23 int tz_dsttime; /* type of dst correction */
24 };
25 #endif
26
27 void gettimeofday (struct timeval *, struct timezone *);
28
29 #define ITIMER_REAL 0
30 #define ITIMER_PROF 1
31
32 struct itimerval
33 {
34 struct timeval it_interval; /* timer interval */
35 struct timeval it_value; /* current value */
36 };
37
38 int getitimer (int, struct itimerval *);
39 int setitimer (int, struct itimerval *, struct itimerval *);
40
41 #endif /* SYS_TIME_H_INCLUDED */
42
43 /* end of sys/time.h */
44