I was searching for a usleep() function in Python 2.7.
Does anybody know if it does exist, maybe with another function name?
Since usleep generally means you want to delay execution for x microseconds, you must divide the seconds value by 1000000.
usleep
import time time.sleep(seconds/1000000.0)
time.sleep() takes seconds as a parameter.
time.sleep()
http://docs.python.org/library/time.html#time.sleep
2.1m questions
2.1m answers
60 comments
57.0k users