[Lazarus] Portable way to get accurate timestamps?
Luca Olivetti
luca at wetron.es
Sun Feb 20 14:46:34 CET 2011
Al 20/02/11 12:42, En/na Bo Berglund ha escrit:
> I wonder if GetTickCount will get me a better value to milliseconds
> than Now()?
Not under linux:
function GetTickCount: DWord;
begin
Result := DWord(Trunc(Now * 24 * 60 * 60 * 1000));
end;
Bye
--
Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004 (Ext.133) Fax +34 93 5883007
More information about the Lazarus
mailing list