[Lazarus] Better implementation of GetTickcount using clock_gettime

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Thu Apr 10 00:54:09 CEST 2014


On 2014-04-02 08:08, Michael Van Canneyt wrote:
> On Tue, 1 Apr 2014, Mattias Gaertner wrote:
>> Thanks. GetTickCount64 now uses it on Linux.
> 
> The implementation in Sysutils now does so too, and uses a fallback using gettimeofday.


Thanks, I'll update EpikTimer to simply use that for 2.7.1 and later.


BTW:
EpikTimer has been using CLOCK_MONOTONIC for 2+ years already - as a
fallback for 64-bit non-Windows systems.


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/




More information about the Lazarus mailing list