[Lazarus] Portable way to get accurate timestamps?

Graeme Geldenhuys graemeg.lists at gmail.com
Thu Feb 24 08:22:43 CET 2011


Op 2011-02-23 18:56, Luca Olivetti het geskryf:
> BTW: in which unit are clock_gettime and related constants defined?

libc   (FPC wrapper to the libc library)

...more specifically...

packages/libc/src/timeh.inc


I wonder if we can't use Petr's GetTickCount() implementation as default
for FPC+Linux/BSD? Anybody raised this question to the FPC developers?


Regards,
  - Graeme -

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





More information about the Lazarus mailing list