Reorganized the Time class and the time delay mechanism in Task.