Advertisement
rfmonk

time_clock_sleep.py

Jan 17th, 2014
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. #!/usr/bin/env python
  2.  
  3.  
  4. import time
  5.  
  6. for i in range(6, 1, -1):
  7.     print '%s %0.2f %0.2f' % (time.ctime(),
  8.                               time.time(),
  9.                               time.clock())
  10.     print 'Sleeping', i
  11.     time.sleep(i)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement