Advertisement
Guest User

Untitled

a guest
May 22nd, 2015
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. import timing
  2. import time
  3.  
  4. def procedure():
  5. time.sleep(1.234)
  6.  
  7. timing.start()
  8. procedure()
  9. timing.finish()
  10.  
  11. print "seconds:", timing.seconds()
  12. print "milliseconds:", timing.milli()
  13. print "microseconds:", timing.micro()
  14.  
  15. ## seconds: 1
  16. ## milliseconds: 1239
  17. ## microseconds: 1239999
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement