]> code.delx.au - gnu-emacs/blob - nt/inc/sys/time.h
Merge from emacs-24; up to 2012-05-08T15:19:18Z!monnier@iro.umontreal.ca
[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 struct timeval
10 {
11 long tv_sec; /* seconds */
12 long tv_usec; /* microseconds */
13 };
14
15 struct timezone
16 {
17 int tz_minuteswest; /* minutes west of Greenwich */
18 int tz_dsttime; /* type of dst correction */
19 };
20
21 void gettimeofday (struct timeval *, struct timezone *);
22
23 #define ITIMER_REAL 0
24 #define ITIMER_PROF 1
25
26 struct itimerval
27 {
28 struct timeval it_interval; /* timer interval */
29 struct timeval it_value; /* current value */
30 };
31
32 int getitimer (int, struct itimerval *);
33 int setitimer (int, struct itimerval *, struct itimerval *);
34
35 #endif /* SYS_TIME_H_INCLUDED */
36
37 /* end of sys/time.h */
38