fixed the timer to show elapsed time