0

Where can I find documentation about that? Which one has more precision? Which one has more performance? What is the difference among them?

Jan Deinhard
  • 19,645
  • 24
  • 81
  • 137
JohnPristine
  • 3,485
  • 5
  • 30
  • 49

1 Answers1

2

Here is a nice test program to investigate the differences in the various system clocks:

http://lwn.net/Articles/105582/

The resolution is the same on all of them, but they each measure different things.

embedded.kyle
  • 10,976
  • 5
  • 37
  • 56
  • According to the output of the test in the link above, which one is the fastest? I am not sure what each of those numbers means. :| – JohnPristine Jun 06 '12 at 19:51
  • The resolution is the same in each case. Each tick = 0.000000040 (I believe that's in nanoseconds). So they all run the same speed. But each has a different reference or starting point. – embedded.kyle Jun 06 '12 at 19:55
  • They don't run at the same "speed", I don't think -- not if you measure speed over a length of time. The monotonic clock never adjusts back, it will slow down and speed up to catch up on clock adjustments done by ntp and similar clock synchronizers. The nonmonotonic one can jump back. The "test program" you reference appears not to run for extended periods of time, and wasn't run in the presence of an NTP or PTP daemon that syncs the clock. – Kuba hasn't forgotten Monica Jun 07 '12 at 00:25