Only run the timer when simulation is running