Articles → Python → Time.Sleep Function In Python
Time.Sleep Function In Python
Purpose
Example
import pyautogui
import datetime
import time
print("Time before sleep function:", datetime.datetime.now())
time.sleep(3)
print("Time after sleep function:", datetime.datetime.now())
Example