[fpc-pascal] Timer in X11

Henry Vermaak henry.vermaak at gmail.com
Wed Dec 21 17:46:27 CET 2011


On 21/12/11 16:26, Felipe Monteiro de Carvalho wrote:
> I tested with top and it doesn't even show my application in the top
> 20 users of CPU.
>
> Anyway, I changed in this rev:
> http://svn.freepascal.org/cgi-bin/viewvc.cgi?view=rev&root=lazarus&revision=34354
>
> It now adjusts the interval acoording to the installed timers, up to a
> maximum of 1 second.

You're still "guessing" a timer interval of 10ms to add to the timer if 
the select() doesn't time out.  So your error can be as much as 990ms 
per iteration of the loop.  So much for precision then.

Henry



More information about the fpc-pascal mailing list