Added user and system CPU time measurement.
Factored statistics computation out from the timer.