A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2005-September/296274.html below:

How to use a timer in Python?

How to use a timer in Python? How to use a timer in Python?Sybren Stuvel sybrenUSE at YOURthirdtower.com.imagination
Fri Sep 23 02:26:50 EDT 2005
Nico Grubert enlightened us with:
> How can I use a timer that waits e.g. 10 seconds if 'transfer.lock'
> is present and then checks again if 'transfer.lock' is still there?

Make a while loop in which you sleep. Or use the threading module if
you want to go multi-threading.

Sybren
-- 
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself? 
                                             Frank Zappa

More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4