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

    With this method, you wouldn't get access to the other features of the time library and you can't have a variable called sleep. But you could create a variable called time.

  2. time - Display a countdown for the python sleep function - Stack …

    Jun 20, 2013 · time.sleep(1) By default, the print function sets end="\n" which means subsequent calls to print will be printed on a new line. You can change this to end="\r" to replace the …

  3. break/interrupt a time.sleep() in python - Stack Overflow

    I need to break from time.sleep() using ctrl c. While 1: time.sleep(60) In the above code when the control enters time.sleep function an entire 60 seconds needs to elapsed for python to handle...

  4. 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.

  5. python - asyncio.sleep () vs time.sleep () - Stack Overflow

    When time.sleep(5) is called, it will block the entire execution of the script and it will be put on hold, just frozen, doing nothing. But when you call await asyncio.sleep(5), it will ask the event …

  6. How accurate is python's time.sleep ()? - Stack Overflow

    The accuracy of the time.sleep function depends on your underlying OS's sleep accuracy. For non-real-time OSs like a stock Windows, the smallest interval you can sleep for is about 10 …

  7. usleep in Python - Stack Overflow

    Apr 6, 2011 · I was searching for a usleep() function in Python 2.7. Does anybody know if it does exist, maybe with another function name?

  8. In Python, how can I put a thread to sleep until a specific time?

    Aug 25, 2020 · I know that I can cause a thread to sleep for a specific amount of time with: time.sleep(NUM) How can I make a thread sleep until 2AM? Do I have to do math to …

  9. python - time.sleep -- sleeps thread or process? - Stack Overflow

    Sep 18, 2008 · In Python for *nix, does time.sleep() block the thread or the process?

  10. Upper limit in Python time.sleep ()? - Stack Overflow

    Dec 21, 2009 · The actual suspension time may be less than that requested because any caught signal will terminate the sleep() following execution of that signal’s catching routine. Also, the …