Timer

Implementation of timer