Patent ID: 8630386

Claim:
A method of updating a first counter in an electronic device, a value of the first counter representing a time, comprising: counting, during a first time period, clock pulses derived from a first oscillator in the first counter at a first rate; keeping, during a second time period following the first time period, a value of the first counter independent of clock pulses derived from the first oscillator during the second time period; counting, during the second time period, clock pulses derived from a second oscillator in a second counter; counting, during a recovery time period following the second time period, clock pulses derived from the second oscillator in the second counter; and counting, during the recovery time period, clock pulses derived from the first oscillator in the first counter at a second rate higher than the first rate, a duration of the recovery time period being determined based on the number of pulses counted in the second counter during the second time period.