It looks like it is possible for high_resolution_clock to be something other than monotonic. steady_clock is always monotonic so I will switch to that.
On Wed, Apr 9, 2014 at 9:42 PM, Jussi Laako <jussi.la...@linux.intel.com> wrote: > 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 IVI@lists.tizen.org https://lists.tizen.org/listinfo/ivi