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 ...
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).