A set of methods and classes to accurately measure elapsed time.
pip install timeutils==0.3.2
timeutils is a Python package providing a set of methods and classes to accurately measure elapsed time.
The documentation is hosted on http://timeutils.readthedocs.io
Latest from the source:
git clone https://gitlab.com/cmick/timeutils.git cd timeutils python setup.py install
Using PyPI:
pip install timeutils
>>> from timeutils import Stopwatch
>>> sw = Stopwatch(start=True)
>>> sw.elapsed_seconds
16.282313108444214
>>> str(sw.stop())
'0:01:30.416023'
>>> sw.elapsed.human_str()
'1 min, 30 secs'