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
clockit uses the timeit module which accepts objects that are callable without arguments.
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.4.tar.gz
(2.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file clockit-0.2.4.tar.gz.
File metadata
- Download URL: clockit-0.2.4.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f93c7f46d6a80c5d42a7b69c8adae467911243ca82b85ce3bb37e076a6cb196
|
|
| MD5 |
6bc4dc2f82ee95a06b6b67e4de587b25
|
|
| BLAKE2b-256 |
c005b8ae7d0b0580c19f30864900f70e956ed5b09d703803445cc073f1a2b199
|
File details
Details for the file clockit-0.2.4-py2.py3-none-any.whl.
File metadata
- Download URL: clockit-0.2.4-py2.py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a5fcc06923d0ffd8f72e4c1c33893097d79b6fb46c8eb1395ab4b8e104c4f45
|
|
| MD5 |
274c709c702562a2cb7b0ed0e939c80b
|
|
| BLAKE2b-256 |
56079ec2ab2c2cb84793425c77a8d51b06920a1b11d24522e636ffec5db4b17a
|