Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 724 Bytes

README.md

File metadata and controls

30 lines (23 loc) · 724 Bytes

ONPyTimer

ONPyTimer allows to monitor time difference between the lines of a Python script in a stopwatch-like manner

Usage

from ONPyTimer import *

ONPyTimer.check(flag='A')   # will show current time and flag name
...
ONPyTimer.check(flags=['A']) # will show time diff from flag 'A'
...
ONPyTimer.check(flag='B', flags=['A']) # will show new flag name and time diff
... 								   # from flag 'A'
...
ONPyTimer.check(flags=['A', 'B']) # will show time diff from flags 'A' and 'B'
...
ONPyTimer.check(flags=['A'], output=f) # will write time diff from flag 'A' to file 'f'

Author

Author: Nicolas Alliaume - ON Lab GitHub: http://github.com/nicolasalliaume/ONPyTimer @ 2014