extraced method, and reset the time counter.
reverted the reseting of the timeCounter