How do I sleep for 500 milliseconds in Python?
ExampleCopy code to clipboard
import time print('waiting...') time.sleep(.5) print('done waiting.')
waiting... done waiting.
time.sleep(t), t = seconds
Link to documentation or other source
10 Jun 2019
Author: Max Zorin
This example has been recommended 1 times.
Would you recommend this example to your colleagues?