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

The Timer class is with the old verision compatible.