4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-22 15:07:43 +08:00
2022-09-26 13:44:21 -04:00

25 lines
437 B
C

#ifndef _SYS_RESOURCE_H_
#define _SYS_RESOURCE_H_
#ifdef __cplusplus
extern "C" {
#endif
#include <sys/time.h>
#define RUSAGE_SELF 0 /* calling process */
#define RUSAGE_CHILDREN -1 /* terminated child processes */
struct rusage {
struct timeval ru_utime; /* user time used */
struct timeval ru_stime; /* system time used */
};
int getrusage (int, struct rusage*);
#ifdef __cplusplus
}
#endif
#endif /* !_SYS_RESOURCE_H_ */