Implements wall and CPU timing of total simulation.