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)
source
share