summaryrefslogtreecommitdiff
path: root/src/include/port/win32/sys/resource.h
blob: a14feeb5844636084b289ba6b80e421e45dd7794 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * Replacement for <sys/resource.h> for Windows.
 */
#ifndef WIN32_SYS_RESOURCE_H
#define WIN32_SYS_RESOURCE_H

#include <sys/time.h>			/* for struct timeval */

#define RUSAGE_SELF		0
#define RUSAGE_CHILDREN (-1)

struct rusage
{
	struct timeval ru_utime;	/* user time used */
	struct timeval ru_stime;	/* system time used */
};

extern int	getrusage(int who, struct rusage *rusage);

#endif							/* WIN32_SYS_RESOURCE_H */