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
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to