Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import timing
- import time
- def procedure():
- time.sleep(1.234)
- timing.start()
- procedure()
- timing.finish()
- print "seconds:", timing.seconds()
- print "milliseconds:", timing.milli()
- print "microseconds:", timing.micro()
- ## seconds: 1
- ## milliseconds: 1239
- ## microseconds: 1239999
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement