Returns the resource usage of this thread, this process, or its children.
fn getrusage(who: i32, usage: &mut rusage) -> i32
Whose resource usage to get.
Place where the usage will be stored.
getrusage(2)