Need to update timer for correct output of total time after each frame