Return task and idle time with getrusage
Return the task and idle execution time via getrusage()
call. User can use these times to determine the percentage load of the system and if they record the delta they current load.
Return the total amount of time executed by tasks (not IDLE
) in the utime
field and IDLE time in stime
of struct ruse
.