A method for synchronizing clocks between a first reference clock and a second clock to be set to the frequency of the first reference clock, both sharing a common clock, that method being characterized in that it comprises the following steps: - calculating the integer part of the timestamp using the first reference clock and the common clock, that integer part of the timestamp being the whole number of clock ticks made by the first reference clock in an observation time window of the common clock; - generating a system clock local to the first reference clock; - calculating the phase shift between the signal of the system clock and that of the first reference clock; - calculating the phase shift between the signal of the system clock and that of the common clock; - calculating the decimal part of the timestamp based on the phase shift calculated between the signal of the system clock and that of the first reference clock and on the phase shift calculated between the signal of the system clock and that of the common clock, the decimal part of the timestamp being equal to the decimal part of the quantity obtained by subtracting the product of the ratio between the period of the signal of the system clock and that of the signal of the first reference clock times the ratio between the frequency of the first reference clock and the frequency of the common clock, from the value of a counter that increments with each clock tick, within the observation time window, of the system clock by an increment equal to the ratio between the period of the signal of the system clock and that of the signal of the first reference clock; - sending the decimal timestamp, composed of the integer part and of the decimal part of the timestamp, to the second clock; - setting the second clock using the common clock and the timestamp received. - calculating the integer part of the timestamp using the first reference clock and the common clock, that integer part of the timestamp being the whole number of clock ticks made by the first reference clock in an observation time window of the common clock; - generating a system clock local to the first reference clock; - calculating the phase shift between the signal of the system clock and that of the first reference clock; - calculating the phase shift between the signal of the system clock and that of the common clock; - calculating the decimal part of the timestamp based on the phase shift calculated between the signal of the system clock and that of the first reference clock and on the phase shift calculated between the signal of the system clock and that of the common clock, the decimal part of the timestamp being equal to the decimal part of the quantity obtained by subtracting the product of the ratio between the period of the signal of the system clock and that of the signal of the first reference clock times the ratio between the frequency of the first reference clock and the frequency of the common clock, from the value of a counter that increments with each clock tick, within the observation time window, of the system clock by an increment equal to the ratio between the period of the signal of the system clock and that of the signal of the first reference clock; the product of the ratio between the period of the signal of the system clock and that of the signal of the first reference clock times the ratio between the frequency of the first reference clock and the frequency of the common clock, from the value of a counter that increments with each clock tick, within the observation time window, of the system clock by an increment equal to the ratio between the period of the signal of the system clock and that of the signal of the first reference clock; - sending the decimal timestamp, composed of the integer part and of the decimal part of the timestamp, to the second clock; - setting the second clock using the common clock and the timestamp received.