El 02/04/14 14:28, Mattias Gaertner ha escrit: > Sigh. Again: CLOCK_MONOTONIC is monotonic. It does not go > backwards and especially it does not apply timezone, daylight or user > time changes. It only fixes shortcomings of the machine counters.
It's not supposed to go backward, but in some versions of the kernel it appears that it did: http://stackoverflow.com/questions/3657289/linux-clock-gettimeclock-monotonic-strange-non-monotonic-behavior See also http://stackoverflow.com/questions/14270300/what-is-the-difference-between-clock-monotonic-clock-monotonic-raw I also read (I think on stackoverflow but I cannot find the page right now), that one doesn't take into account the time during a suspension while the other does (I don't remember which is which) and that's an important difference depending on the application. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007 -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
