Pass to getrusage() to request resources consumed by the calling process, which is the sum of resources used by all threads in the process.
resource/RUSAGE_SELF
RUSAGE_SELF