Advertisement
here2share

# time_test_16_decimal_places_and_microseconds.py

Sep 7th, 2015
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. # time_test_16_decimal_places_and_microseconds.py
  2.  
  3. import time
  4. start = time.clock()
  5.  
  6. for i in range(1000): # <<< an example code to time
  7.     pass
  8.  
  9. result = time.clock() - start
  10. print "Amount Of Time Spent In Seconds: %.16f" % (result)
  11. print "Amount Of Time Spent In Microseconds: %.0f" % (result * 10000000) # this might be incorrect
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement