How do I get my Python program to sleep for 50 milliseconds?

TK. picture TK. · Dec 18, 2008 · Viewed 523.2k times · Source

How do I get my Python program to sleep for 50 milliseconds?

Answer

Will Boyce picture Will Boyce · Dec 18, 2008

Use time.sleep()

from time import sleep
sleep(0.05)