Added Time class and modified the Timer class for more easily usage.