[Lazarus] How to program with time in milliseconds?

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Sun May 18 20:21:41 CEST 2014


On 2014-05-18 00:49, Tom Lisjac wrote:
> I'm adding some clarification and context to your ongoing comments about
> EpikTimer in this and other threads.

What Michael also keeps forgetting, is that EpikTimer gives a unified
timing interface, which is very handy in cross-platform applications.
Yes we could manually use QueryPerformanceCounter under Windows,
clock_gettime() under Linux and FreeBSD, and fpgettimeofday() everywhere
else.... but EpikTimer gives us a clean API to use, and takes care of
the platform differences for us. Makes for much cleaner code in our
applications, which I personally think is nice!


Regards,
  - Graeme -

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




More information about the Lazarus mailing list