Navigation Menu

Skip to content

nicolasalliaume/ONPyTimer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages