Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time
- t0 = t1 = 0
- def start():
- global t0
- t0 = time.time()
- def finish():
- global t1
- t1 = time.time()
- def seconds():
- return int(t1 - t0)
- def milli():
- return int((t1 - t0) * 1000)
- def micro():
- return int((t1 - t0) * 1000000)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement