Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time
- def procedure():
- time.sleep(2.5)
- # measure process time
- t0 = time.clock()
- procedure()
- print time.clock() - t0, "seconds process time"
- # measure wall time
- t0 = time.time()
- procedure()
- print time.time() - t0, "seconds wall time"
- ## 0.0 seconds process time
- ## 2.50903499126 seconds wall time
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement