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

    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 thread in which it is called by the operating system, allowing other threads and …

  2. python - How to print a string with a little delay between the chars ...

    Depends on the typist. Home keyed touch typists: the delay is going to be greater between same finger keys.. and probably shortest between alternating hands. Longer delay for shifting, etc. I started coding something up, but then decided to get back to work :) –

  3. How to make time delays in Python - Stack Overflow

    Possible Duplicate: How can I make a time delay in Python? In Python, how can you make things delay? Like in RBLX.lua, you go "wait(3)" and the current script would delay for 3 seconds.

  4. Delay between for loop iteration (python) - Stack Overflow

    I wanted to put the delay in so that Firefox is capable of registering all of the queries instead of “almost” all of the queries. – user3072758 Commented Apr 21, 2014 at 14:10

  5. Time delay loop in python - Stack Overflow

    Aug 22, 2012 · btown: ah interesting if willing to risk overshooting the delay time... you could take a snapshot of the current time, get the iterator's .next(), subtract that from the current time to get how long the iterator took, and subtract that from the fixed delay, so your delay will remain fixed –

  6. How to add a delay or wait to a print() . (python) - Stack Overflow

    Aug 19, 2019 · secs - The number of seconds the Python program should pause execution. This argument should be either an int or a float. Suspend execution of the calling thread for the given number of seconds. The argument may be a floating point number to …

  7. Python Time Delays - Stack Overflow

    Aug 8, 2010 · I figured out a mimic for setTimeout and setInterval from JavaScript, but in Python. With this class you can: Set a timeout with an interval ID (through variable, not required). Set an interval in the same wise as a timeout. Set an interval with an ID, and then set a timeout that will cancel the interval in a given amount of time.

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

    Nov 1, 2024 · It is extremely unlikely that the python code base will round sleep(0.05) into 2 system clock ticks. It will mostly likely request 3 clock ticks because that's the right answer. BUT the system might return after 3 or 4 or 5 or 100 clock ticks.

  9. How Do you make a delay in python without stoping the whole …

    Apr 8, 2015 · timer = pygame.USEREVENT + 1; pygame.time.set_timer(timer, RUN_DELAY_IN_MILLISECONDS) when your character starts to run, if event.type == timer: [change sprite image]

  10. Time delay in python - Stack Overflow

    May 10, 2013 · How do I make something have a small delay in python? I want to display something 3 seconds after afterwards and then let the user input something. Here is what I have. print "Think of a number between 1 and 100" print "Then I shall guess the number" I want a delay here. print "I guess", computerguess raw_input ("Is it lower or higher?")

Refresh