pub fn get_total_cpu_usage(rusage: Usage) -> DurationExpand description
Calculate the total CPU time from the given usage structure, returned from
[nix::sys::resource::getrusage], and calculates the total CPU time spent, including both user
and system time.
§Arguments
rusage: Contains resource usage information.
§Returns
Returns a Duration representing the total CPU time.