[Lazarus] Epiktimer elapsed = negative value (OT)
Anthony Tekatch
anthony at unihedron.com
Mon Jul 7 22:34:39 CEST 2014
On Mon, 07 Jul 2014 13:49:00 +0200, Michael Schnell <mschnell at lumino.de> wrote:
> This might be correct in a worker thread.
>
> In the main thread it usually is a bad idea to do "sleep" or any sort
> of polling..
Agreed, polling is bad, so I did this instead:
while RunWhile do begin
sleep(1000 - MilliSecondOf(Now));
LogOneReading(); //Store successive readings (my code)
end;
More information about the Lazarus
mailing list