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

    115 How can I make a time delay in Python? In a single thread I suggest the sleep function: >>> from time import sleep >>> sleep(4) This function actually suspends the processing of the …

  2. python - 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.

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

    If you are calling the python script from a Windows Batch File, you can add pause to the end of the batch file instead of putting a command at the end of the python file, and you will get the …

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

  5. 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 …

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

    Aug 25, 2020 · time.sleep(NUM) How can I make a thread sleep until 2AM? Do I have to do math to determine the number of seconds until 2AM? Or is there some library function? ( Yes, I …

  7. 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 handled …

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

    Dec 21, 2009 · Is there an upper limit to how long you can specify a thread to sleep with time.sleep()? I have been having issues with sleeping my script for long periods (i.e., over 1k …

  9. Display a countdown for the python sleep function

    2 time.sleep() may return earlier if the sleep is interrupted by a signal or later (depends on the scheduling of other processes/threads by OS/the interpreter). To improve accuracy over …

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

    python python-3.x asynchronous python-asyncio sleep edited Dec 9, 2022 at 7:33 Super Kai - Kazuya Ito 42.5k 22 256 253