Dip  0.92.3
sym_win32_time.h
Go to the documentation of this file.
1 #ifndef WIN32_TIME_H
2 #define WIN32_TIME_H
3 
4 #if defined(_MSC_VER) || defined (__MNO_CYGWIN)
5 #include <time.h>
6 
7 #if !(defined(__MINGW64__) || defined(__MINGW32__))
8 struct timeval {
9  long tv_sec; /* seconds */
10  long tv_usec; /* and microseconds */
11 };
12 #endif
13 
14 struct rusage {
15  struct timeval ru_utime; /* user time used */
16  struct timeval ru_stime; /* system time used */
17  long ru_maxrss; /* maximum resident set size */
18  long ru_idrss; /* integral resident set size */
19  long ru_minflt; /* page faults not requiring physical I/O*/
20  long ru_majflt; /* page faults requiring physical I/O */
21  long ru_nswap; /* swaps */
22  long ru_inblock; /* block input operations */
23  long ru_oublock; /* block output operations */
24  long ru_msgsnd; /* messages sent */
25  long ru_msgrcv; /* messages received */
26  long ru_nsignals;/* signals received */
27  long ru_nvcsw; /* voluntary context switches */
28  long ru_nivcsw; /* involuntary context switches */
29 };
30 
31 #pragma warning(disable:4244)
32 #pragma warning(disable:4013)
33 #pragma warning(disable:4068)
34 #pragma warning(disable:4761)
35 #pragma warning(disable:4305)
36 #pragma warning(disable:4101)
37 #pragma warning(disable:4700)
38 #pragma warning(disable:4018)
39 
40 
41 #endif
42 #endif