Skip to main content

Tool for timing the execution of Python functions

Project description

Tool for timing the execution of Python functions.

Installation

Install with pip:

pip install clockit

Usage

Run as follows:

$ python
>>> from clockit import clockit
>>> def f(x, y=1):
...     return x, y
...
>>> clockit(f, 1, y=2)
0.00045296200551092625

Project details


Download files

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

Source Distribution

clockit-0.1.0.tar.gz (1.6 kB view hashes)

Uploaded Source

Built Distribution

clockit-0.1.0-py2.py3-none-any.whl (2.8 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page