Sync your watch online

I send critical data in real time over the Internet between two dedicated computers using my own protocol.

There is, of course, latency.

For debugging and optimization, I like it when both computers use the same time base. Ie, I need to know the time difference of their hours in order to better appreciate the delays.

Of course, relativism and the like do not allow me to synchronize them completely, but I like it as close as possible.

Relying only on NTP, it does not look good enough - the clock can be turned off for half a second in my experience (explanation: I still relied on the standard version of Apple).

I need accuracy in the 1 / 10s range, at least. These two computers will not be too far apart, usually the ICMP exchange time is less than 100 ms.

Any suggestions on how to do this?

(OS X is currently involved in the machines, so if you only know the solution for them, this will be the beginning)

+5
source share
4 answers

I would suggest that it is best to install an ntp server on one of the computers and make it synchronize with it.

+7
source

Get time from a GPS receiver connected to the machines. If they are in the data center, it can be difficult to get the antenna in a place where, unfortunately, it can get a lock.

+10

NTP- ? , "" , , .

+2
source

Relying only on NTP, it does not appear enough - the clock can be turned off half a second in my experience.

This is strange. NTPd over the Internet is supposed to give you much greater accuracy.

+2
source

All Articles