timer

timer function added