On Wed, 02 Apr 2014 13:45:08 +0300 Anton Kavalenka <[email protected]> wrote:
>[...] > Yes - CLOCK_MONOTONICC_RAW is prefreable, because general GetTickCount() > is number of millisecond ticks since system startup. It cannot be > adjusted by time services, it just grows up every 1 msec. > Ant typical GetTickCount() usage - find a difference between subsequent > values. > It would be amazing when difference gets negative. The NTP changes in CLOCK_MONOTONIC only accelerates or slows it down. It tries to fix the ticks for e.g. busy systems or VMs. It is still monotonic. CLOCK_MONOTONIC_RAW would better emulate the WinAPI function GetTickCount. I guess most programs need CLOCK_MONOTONIC. OTOH if you need precision you should not use GetTickCount, so the discussion is somewhat pointless. Mattias -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
