There is probably an already existing python module for this. I wrote this one to be simple and to learn about wrappers and function decorators. To use, import either gn_timer (for python 3) or ...
Timer Object for Python to easily track duration. Made for a wider project as a learning experiment.
The class stores the UNIX time (in seconds) at time of being called with .start() method (not initialization) and will give back the elapsed time being started as a float in seconds (e.g. 2.5443).
Some results have been hidden because they may be inaccessible to you
Show inaccessible results