Implemented user and system time tracking using getrusage().