Time delay loop - better way?

Anthony Baxter anthonybaxter at gmail.com
Sat Jul 3 11:09:27 EDT 2004


On Sat, 03 Jul 2004 00:50:40 -0700, Josiah Carlson <jcarlson at uci.edu> wrote:
> I have used wxTimers for doing asyncore.poll() scheduling every 1/100th
> a second, and it seemed to work pretty reliably on my celeron 400.

On Windows, shtoom was completely unable to use the wxTimer approach -
it's timer precision is just horrific. We ended up splitting the UI
off into a separate thread than all the time-senstive network stuff. I
will admit that shtoom's requirements are a hell of a lot harsher than
your "typical" application's, though.

(twisted's wxreactor uses wxTimer)

Anthony




More information about the Python-list mailing list