[code.view]

[top] / python / PyMOTW / time / time_clock_sleep.py

     #!/usr/bin/env python
     # encoding: utf-8
     #
     # Copyright (c) 2008 Doug Hellmann All rights reserved.
     #
     """
     """
     #end_pymotw_header
     
     import time
     
     for i in range(6, 1, -1):
         print '%s %0.2f %0.2f' % (time.ctime(), time.time(), time.clock())
         print 'Sleeping', i
         time.sleep(i)

[top] / python / PyMOTW / time / time_clock_sleep.py

contact | logmethods.com