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
...
>>> clocked = clockit(f, 1, y=2)
>>> clocked.result
(1, 2)
>>> clocked.time
0.0005593200330622494

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.2.0.tar.gz (1.7 kB view details)

Uploaded Source

Built Distribution

clockit-0.2.0-py2.py3-none-any.whl (3.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file clockit-0.2.0.tar.gz.

File metadata

  • Download URL: clockit-0.2.0.tar.gz
  • Upload date:
  • Size: 1.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for clockit-0.2.0.tar.gz
Algorithm Hash digest
SHA256 859706ca2530c5b3ef7d701da8238a97c43e86b330ad1f462017ea8543080b3c
MD5 9ed24731e7b0d07d1088e76ed0cded9e
BLAKE2b-256 baaf1a95a4464a77610654d774656abb5ed04f5efd3f1e81821451b007c5f65e

See more details on using hashes here.

File details

Details for the file clockit-0.2.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for clockit-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c5848a025f7675d8bfe21f7bd193ddb7652160300ff88dcf831c51e726a4a85a
MD5 ad5a8823421284bcec8c9e040511564e
BLAKE2b-256 ca5e7724e3d83b697fab6230321f8e4db29248064c70903b8738541d1c442ba3

See more details on using hashes here.

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