Updating the timer to accept different clocks and durations.