SaltyCrane Blog — Notes on JavaScript and web development

python sleep

How to sleep for 5 seconds in python:

import time

time.sleep(5)

How to sleep for 0.5 seconds in python:

import time

time.sleep(0.5)

Documentation: time.sleep()

Comments


#1 Alvin Mites commented on :

Oddly enough I keep forgetting the syntax for this.