Mega Code Archive

 
Categories / Python Tutorial / Buildin Module
 

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)