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)
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 859706ca2530c5b3ef7d701da8238a97c43e86b330ad1f462017ea8543080b3c |
|
MD5 | 9ed24731e7b0d07d1088e76ed0cded9e |
|
BLAKE2b-256 | baaf1a95a4464a77610654d774656abb5ed04f5efd3f1e81821451b007c5f65e |
File details
Details for the file clockit-0.2.0-py2.py3-none-any.whl
.
File metadata
- Download URL: clockit-0.2.0-py2.py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5848a025f7675d8bfe21f7bd193ddb7652160300ff88dcf831c51e726a4a85a |
|
MD5 | ad5a8823421284bcec8c9e040511564e |
|
BLAKE2b-256 | ca5e7724e3d83b697fab6230321f8e4db29248064c70903b8738541d1c442ba3 |