why use an seperate component when there is an lcl function that does this ?
----- Original Message -----
From: "Felipe Monteiro de Carvalho" <[EMAIL PROTECTED]>
To: <lazarus@miraclec.com>
Sent: Monday, March 06, 2006 6:24 PM
Subject: Re: [lazarus] GetTickCount / LCLLinux
Hello,
I´m not sure why you need GetTickCount, but there is a multiplatform
timer component for Lazarus, it´s called EpikTimer and can probably do
what you want.
Here is it´s documentation:
http://wiki.lazarus.freepascal.org/index.php/EpikTimer
You can ged elapsed time (it uses hardware timer when available or
winapi or linux kernel timer).
To get something similtar to the result of GetTickCount you just need to
do:
Var ET: TEpikTimer;
Begin
ET.Clear;
ET.Start;
and then
TickCount := ET.Elapsed;
This timer is *very* efficient. Nanosecond efficient. Enought to
control PCI cards with it.
--
Felipe Monteiro de Carvalho
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives