Skip to main content

A set of methods and classes to accurately measure elapsed time.

Project description

https://img.shields.io/pypi/status/timeutils.svg https://badge.fury.io/py/timeutils.svg https://readthedocs.org/projects/timeutils/badge https://img.shields.io/pypi/pyversions/timeutils.svg https://img.shields.io/pypi/l/timeutils.svg

timeutils

timeutils is a Python package providing a set of methods and classes to accurately measure elapsed time.

Documentation

The documentation is hosted on http://timeutils.readthedocs.io/en/v0.2.1/

Installation

Latest from the source:

git clone https://gitlab.com/cmick/timeutils.git
cd timeutils
python setup.py install

Using PyPI:

pip install timeutils

Examples

>>> from timeutils import Stopwatch
>>> sw = Stopwatch(start=True)
>>> sw.elapsed_seconds
16.282313108444214
>>> str(sw.stop())
'00:01:30.416'
>>> sw.elapsed.human_str()
'1 min, 30 secs'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for timeutils, version 0.2.1
Filename, size File type Python version Upload date Hashes
Filename, size timeutils-0.2.1.tar.gz (5.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page