W
W
WolfInChains2020-05-28 02:10:46
Python
WolfInChains, 2020-05-28 02:10:46

Alternative to time.sleep?

What is the alternative to time.sleep? I need to make a countdown, but so that the script continues to work

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
AlexBoss, 2020-05-28
@AlexBoss

And here sleep if you need to make a countdown? You can use time.time() (returns time in seconds since the epoch), save it to a variable and work as with a reference point.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question