On 9.4.2014 20:13, Rees, Kevron wrote:
I use clock_gettime(CLOCK_REALTIME,&tm);
If there is a better way, I'm all ears:p
That has a bit more resolution than gettimeofday(), but is otherwise
same thing and equally non-monotonic. So NTP may cause the clock jump
backwards or forwards for example.
You should use clock_gettime(CLOCK_MONOTONIC_RAW,) on Linux. See
clock_gettime(3) and also corresponding documentation in IEEE
1003.1-2008 regarding CLOCK_REALTIME vs CLOCK_MONOTONIC.
_______________________________________________
IVI mailing list
[email protected]
https://lists.tizen.org/listinfo/ivi