[fpc-pascal] Timer in X11

Graeme Geldenhuys graemeg.lists at gmail.com
Thu Dec 22 08:53:44 CET 2011


On 21 December 2011 18:06, Henry Vermaak wrote:
> embedded devices, laptops have batteries, too.  You're wasting CPU and power
> just spinning around a loop, so even if your app isn't active, it's still
> waking up every 50ms.  I don't consider this very good programming practice.

I'm always interested in improvements. The 50ms code was done purely
to implement the Application.OnIdle() event. How else can I implement
an OnIdle event then?


-- 
Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://fpgui.sourceforge.net



More information about the fpc-pascal mailing list