Syntax | #include <sys/resource.h> int getrusage(int who, struct rusage *r_usage); CRTE111A30 int getrusage64(int who, struct rusage64 *r_usage); (End) | |
Description |
The who argument can contain the value The function The structure struct timeval ru_utime /* The total time the execution takes in user mode. The interval is specified in seconds and microseconds. */ struct timeval ru_stime /* The total time the execution takes in system mode. The interval is specified in seconds and microseconds. */ The structure struct timeval64 ru_utime /* The total time the execution takes in user mode. The interval is specified in seconds and microseconds. */ struct timeval64 ru_stime /* The total time the execution takes in system mode. The interval is specified in seconds and microseconds. */ | |
Return val. | 0 | if successful. The |
-1 | if an error occurs. | |
Errors |
| |
| The who argument does not contain a valid value. | |
Extension | ||
| The address specified by the r_usage argument is not a valid area of the address area of the process. (End) | |
| ||
|
| POSIX-BC correction status < A47. |
See also |
|