On Tue, Nov 9, 2010 at 2:38 PM, Thiago Macieira <thi...@kde.org> wrote: > All one needs to do is get both the wall clock and monotonic clock values and > compare the difference to the last difference computed. If there was a > considerable jump, skip this cleaning up.
A more robust solution would be to accumulate detected clock "jumps" (pairs of mono_clock, rtc_offset) along the last 12 hours of monotonic time, adding and dropping them as they appear and fall out of the scope. You can then calculate a more or less precise rtc value corresponding to "12 hours of CPU time ago". -- Patryk Zawadzki _______________________________________________ xdg mailing list xdg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xdg