There are two methods in Python to make the process wait some seconds:
threading.Event
1 2 3 4 5 |
import threading e = threading.Event() e.wait(5) #make the process to wait for 5 seconds |
time.sleep
1 2 3 |
import time time.sleep(2) #let the program to sleep for 2 seconds |