Calculate duration for statistics from the actual time run