What is the best alternative of time.sleep() in python? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the best alternative of time.sleep() in python?

I wrote a python script, which has a while loop with time.sleep() function. Is there any other function like time.sleep().

28th Nov 2016, 2:47 PM
Ahasan Al Rabbi
Ahasan Al Rabbi - avatar
2 Answers
0
why would you need another one? this one works just fine already doesn't it?
30th Nov 2016, 1:10 AM
Gustavo Luis
Gustavo Luis - avatar
0
It works fine, but if I want to do something with exact time intervals it fails.
30th Nov 2016, 11:08 AM
Ahasan Al Rabbi
Ahasan Al Rabbi - avatar