Update getrusage.cc

add functions.