It depends on the processor and the Q operating system. For example, when viewing a POSIX clock, there are high-precision timestamps (for example, CLOCK_REALTIME returns a nano-era value) and high-precision arbitrary timestamps (for example CLOCK_MONOTONIC) (NB: the difference between the two is well explained in this answer ).
The latter often happens just from the moment the box is loaded, and therefore it is not possible to accurately compare them between servers if you do not have high-frequency clock synchronization (for example, PTP, as indicated in another answer) in the first place (since then you can share the offset between them). A.
Whether NTP is good enough for you depends on what you are trying to measure. For example, if you are trying to measure an interval of several hundred microns (for example, boxes connected to the same switch), then your results will be rude, and on another extreme NTP it might be fine if your servers are located in different geographical points entirely ( for example, from London to New York), which means that the synchronized effect of synchronization (until it is turned off) damps the delay between locations.
The FWIW JNI needed to access such a watch from java is pretty trivial.
source share