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


Question

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

1
440
10/6/2017 7:42:58 PM

Accepted Answer

from time import sleep
sleep(0.05)

Reference

703
2/10/2019 7:47:08 PM

Note that if you rely on sleep taking exactly 50 ms, you won't get that. It will just be about it.


Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon