Python3.3+ timing module, based on the work of Paul McGuire http://stackoverflow.com/a/1557906 When the program finishes, prints the time expent.
You have to import the module and it will print the time on exit
import timing
If you want to process some info at intermediate work, yo must call:
start_time = timing.now()
some_method()
finish_time = timing.now()
log('Called some_method()', finish_time - start_time)
pip install git+https://github.com/paxet/timing.git
Licensed under MIT license