Re: Repeated timeouts period



On Wed, 2005-10-12 at 21:02 +0200, Nicolas George wrote:
> The behavior of GLib timeouts is, I believe somewhat unpractical. I am
> talking about, quoting the doc, the fact that they "[do] not try to 'catch
> up' time lost in delays".

trying to get accurate timers within a GUI event loop is like trying to
stay upright while walking across oil on a frozen lake.

there is no nothing to prevent a GUI event handler from taking so long
that you miss entire "cycles" of your timer.

if you need accurate timing, i suggest you see it outside the event
loop.

--p





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]