[fpc-pascal] question about FpTimes in BaseUnix package
Luca Olivetti
luca at ventoso.org
Wed Nov 18 20:07:23 CET 2009
En/na Rainer Stratmann ha escrit:
> Am Tuesday 17 November 2009 19:34:19 schrieb Bruce Bauman:
>> I am using the FpTimes function from the BaseUnix package. The
>> documentation says it returns -1 on an error, otherwise the number of
>> clock ticks since boot time.
>
> What does clock ticks exactly mean?
> I am searching for an equivalent to getticks in windows.
There isn't one.
Lazarus defines a compatibility GetTickCount as such:
Result := DWord(Trunc(Now * 24 * 60 * 60 * 1000));
it's not the same as windows' GetTickCount but it can be used if you
just want to calculate elapsed time (provided the clock doesn't jump
back/forward).
Bye
--
Luca
More information about the fpc-pascal
mailing list