processTime function

Gets the running time of the R process and its children processes