Came across this function and couldn't intuitively define the implied name. No search on stack quickly returned the answer.


"Resource Usage"

Reports resource usage totals for processes specified by processes, storing the information in *rusage.

In most systems, processes has only two valid values:

RUSAGE_SELF Just the current process.

RUSAGE_CHILDREN All child processes (direct and indirect) that have already terminated.

The return value of getrusage is zero for success, and -1 for failure.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .