reset time to zero after a reset