PostgreSQL Source Code  git master
resource.h
Go to the documentation of this file.
1 /*
2  * Replacement for <sys/resource.h> for Windows.
3  */
4 #ifndef WIN32_SYS_RESOURCE_H
5 #define WIN32_SYS_RESOURCE_H
6 
7 #include <sys/time.h> /* for struct timeval */
8 
9 #define RUSAGE_SELF 0
10 #define RUSAGE_CHILDREN (-1)
11 
12 struct rusage
13 {
14  struct timeval ru_utime; /* user time used */
15  struct timeval ru_stime; /* system time used */
16 };
17 
18 extern int getrusage(int who, struct rusage *rusage);
19 
20 #endif /* WIN32_SYS_RESOURCE_H */
int getrusage(int who, struct rusage *rusage)
struct timeval ru_utime
Definition: resource.h:14
struct timeval ru_stime
Definition: resource.h:15