2015-07-15 05:09:55 +00:00
|
|
|
#ifndef _SYS_RESOURCE_H_
|
|
|
|
#define _SYS_RESOURCE_H_
|
|
|
|
|
|
|
|
#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 */
|
|
|
|
};
|
|
|
|
|
2018-02-16 13:43:18 +00:00
|
|
|
int getrusage (int, struct rusage*);
|
2015-07-15 05:09:55 +00:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|