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

    Again, sleep suspends your thread - it uses next to zero processing power. To demonstrate, create a script like this (I first attempted this in an interactive Python 3.5 shell, but sub …

  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. usleep in Python - Stack Overflow

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

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

  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. break/interrupt a time.sleep() in python - Stack Overflow

    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 the CTRL C Is there any elegant way to do it. …

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

  9. Python: high precision time.sleep - Stack Overflow

    Jul 31, 2009 · can you tell me how can I get a high precision sleep-function in Python2.6 on Win32 and on Linux?

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