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



Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Monday, May 27, 2019

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250