Does the timer run after a fixed duration or after a completion of task ?