Resets the period of a timer. It will be called again after the defined period of milliseconds has elapsed.