do something in time interval

D'Arcy J.M. Cain darcy at druid.net
Mon Oct 6 15:25:02 EDT 2008


On Mon, 6 Oct 2008 21:13:21 +0200
"Petr Jake?" <petr.jakes at tpc.cz> wrote:
> > I am not an expert, but why not to use time.sleep(5)?
> >
> During the 5s period my script has to do some stuff instead of sleeping.
> Thats why it runs in the loop and once in 5s period it has to trigger some
> other stuff(function, method, action) to do.

Then check out http://www.python.org/doc/current/library/select.html

-- 
D'Arcy J.M. Cain <darcy at druid.net>         |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 425 1212     (DoD#0082)    (eNTP)   |  what's for dinner.



More information about the Python-list mailing list