I am writing some test code where I need nanosecond resolution. When I use clock_gettime with CLOCK_MONOTONIC, i get a value I expect: 3327.874384321. When i use clock_gettime with CLOCK_MONOTONIC_RAW, i get a value that i do not expect: 3327.875723000
I've run this in a loop, and ALL of the values returned have the nanosecond resolution "truncated", 000.
Output from uname -a: Linux raspberrypi 3.12.22+ #691 PREEMPT Wed Jun 18 18:29:58 BST 2014 armv6l GNU/Linux
Thoughts on what is happening? How to address? I am currently considering disabling NTP so I can use CLOCK_MONOTONIC