sleep() method of time module example : Time : Buildin Module PYTHON TUTORIALS


PYTHON TUTORIALS » Buildin Module » Time »

 

sleep() method of time module example


import time
for x in range(3):
    print "The time is now", time.asctime()
    print "Now sleeping for 2 seconds..."
    time.sleep(2)



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Buildin Module
» Time