About 308,000 results
Open links in new tab
  1. python - How do I make a time delay? - Stack Overflow

    16 If you would like to put a time delay in a Python script: Use time.sleep or Event().wait like this:

  2. Is there an easy way in Python to wait until certain condition is …

    Is there an easy way in Python to wait until certain condition is true? Asked 15 years, 8 months ago Modified 9 months ago Viewed 218k times

  3. Make Python Program Wait - Stack Overflow

    Mar 18, 2013 · I need to make my python program wait for 200ms before polling for an input of some description. In C# for example, I could use Thread.Sleep() to achieve this. What is the …

  4. sleep - Correct way to pause a Python program - Stack Overflow

    It seems fine to me (or raw_input() in Python 2.X). Alternatively, you could use time.sleep() if you want to pause for a certain number of seconds.

  5. Python time.sleep () vs event.wait () - Stack Overflow

    Mar 16, 2015 · With time.sleep, even after the event is set, you're going to wait around in the time.sleep call until you've slept for DELAY seconds. In terms of implementation, Python 2.x …

  6. multithreading - Python: How to make program wait till function's …

    How to override this behavior? How to make program wait till calculate () function is finished? "Call via Multiprocessing" buttons utilizes multiprocessing to call calculate () function. Just like …

  7. Wait until all threads are finished in Python - Stack Overflow

    Nov 15, 2023 · I want to run multiple threads simultaneously, and wait until all of them are done before continuing. import subprocess # I want these to happen simultaneously: …

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

    Dec 18, 2008 · Might be interesting to know though that 'the function [time.sleep(secs)] sleeps at least secs ' since Python 3.5 according to the documentation.

  9. Simplest async/await example possible in Python

    Jun 8, 2018 · I've read many examples, blog posts, questions/answers about asyncio / async / await in Python 3.5+, many were complex, the simplest I found was probably this one. Still it …

  10. python - How to wait some time in pygame? - Stack Overflow

    Feb 14, 2015 · 8 For Python in general, you will want to look at the sleep library. For Pygame, however, using pygame.time.delay () will pause for a given number of milliseconds based on …