A task-based timer.