Dip  0.92.4
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 
9 #if (__GNUC__ <= 7) || ((__GNUC__ == 7) && (__GNUC_MINOR__ < 3))
10 struct timeval {
11  long tv_sec; /* seconds */
12  long tv_usec; /* and microseconds */
13 };
14 #endif
15 
16 struct rusage {
17  struct timeval ru_utime; /* user time used */
18  struct timeval ru_stime; /* system time used */
19  long ru_maxrss; /* maximum resident set size */
20  long ru_idrss; /* integral resident set size */
21  long ru_minflt; /* page faults not requiring physical I/O*/
22  long ru_majflt; /* page faults requiring physical I/O */
23  long ru_nswap; /* swaps */
24  long ru_inblock; /* block input operations */
25  long ru_oublock; /* block output operations */
26  long ru_msgsnd; /* messages sent */
27  long ru_msgrcv; /* messages received */
28  long ru_nsignals;/* signals received */
29  long ru_nvcsw; /* voluntary context switches */
30  long ru_nivcsw; /* involuntary context switches */
31 };
32 
33 #pragma warning(disable:4244)
34 #pragma warning(disable:4013)
35 #pragma warning(disable:4068)
36 #pragma warning(disable:4761)
37 #pragma warning(disable:4305)
38 #pragma warning(disable:4101)
39 #pragma warning(disable:4700)
40 #pragma warning(disable:4018)
41 
42 #endif
43 #endif
44 #endif