Commit | Line | Data |
---|---|---|
28dd1b41 AI |
1 | #ifndef SYS_TIME_H_INCLUDED |
2 | #define SYS_TIME_H_INCLUDED | |
3 | ||
c911543b | 4 | /* |
c06c382a EZ |
5 | * sys/time.h either doesn't exist on Windows, or doesn't necessarily |
6 | * have the below stuff. | |
c911543b GV |
7 | */ |
8 | ||
177c0ea7 | 9 | struct timeval |
388cdec0 EZ |
10 | { |
11 | long tv_sec; /* seconds */ | |
12 | long tv_usec; /* microseconds */ | |
13 | }; | |
14 | ||
177c0ea7 | 15 | struct timezone |
388cdec0 EZ |
16 | { |
17 | int tz_minuteswest; /* minutes west of Greenwich */ | |
18 | int tz_dsttime; /* type of dst correction */ | |
19 | }; | |
20 | ||
c911543b GV |
21 | void gettimeofday (struct timeval *, struct timezone *); |
22 | ||
c06c382a EZ |
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 | ||
28dd1b41 AI |
35 | #endif /* SYS_TIME_H_INCLUDED */ |
36 | ||
c911543b | 37 | /* end of sys/time.h */ |
ab5796a9 | 38 |