moving time related method from toolbox to Timer.