Method of acquiring data from a digital sensor clock signal in an electronic circuit, to correct a quartz oscillator temperature dependency in a watch, said electronic circuit including a frequency generator comprising the quartz oscillator for generating a clock signal for a first counter arranged to count the pulses of the clock signal of the quartz oscillator, a control unit, a temperature sensor, a second counter and a delay element, said first counter being connected to the control unit arranged to generate a data acquisition enable signal for the temperature sensor, the length of the data acquisition being defined by the number of the pulses counted by the first counter, said temperature sensor supplying a first sensor clock signal (Clk_Sensor) with a given frequency to the second counter, of the electronic circuit, the second counter comprising a second register for storing fractional or non-full parts of the first sensor clock signal cycles, to the control unit and to the delay element of the electronic circuit where the first sensor clock signal is delayed in the time domain by generating a number n of delayed signals fed to the control unit, where the data for the second register is determined, the method comprising the steps of: - receiving the first sensor clock signal from the temperature sensor; - determining the number of full signal cycles in the first sensor clock signal during a given time period defined by the first counter linked to the oscillator; - saving the number of the full signal cycles in a first register of the second counter; the method further comprising the steps of: - delaying the first clock signal in the time domain by the delay element, - generating a number n of delayed sensor clock signals for the control unit, - determining the signal state of the first sensor clock signal at the end and/or at the beginning of the given time period; - determining, based on the signal state of at least some of the delayed sensor clock signals at the end and/or at the beginning of the given time period, a correction factor defining an estimated length of the non-full signal cycle(s) in the first sensor clock signal during the given period with the contribution of the n-delayed signals; - updating the second register of the second counter with the determined correction factor, and - transmitting the values from the first register and the second register in the control unit so that the temperature dependence of the quartz oscillator is corrected. - receiving the first sensor clock signal from the temperature sensor; - determining the number of full signal cycles in the first sensor clock signal during a given time period defined by the first counter linked to the oscillator; - saving the number of the full signal cycles in a first register of the second counter; - delaying the first clock signal in the time domain by the delay element, - generating a number n of delayed sensor clock signals for the control unit, - determining the signal state of the first sensor clock signal at the end and/or at the beginning of the given time period; - determining, based on the signal state of at least some of the delayed sensor clock signals at the end and/or at the beginning of the given time period, a correction factor defining an estimated length of the non-full signal cycle(s) in the first sensor clock signal during the given period with the contribution of the n-delayed signals; - updating the second register of the second counter with the determined correction factor, and - transmitting the values from the first register and the second register in the control unit so that the temperature dependence of the quartz oscillator is corrected.