[RFC] XDG_RUNTIME_DIR
Patryk Zawadzki
patrys at pld-linux.org
Tue Nov 9 06:14:06 PST 2010
On Tue, Nov 9, 2010 at 2:38 PM, Thiago Macieira <thiago at 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
More information about the xdg
mailing list