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 hashes)
Built Distribution
Close
Hashes for clockit-0.2.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a5fcc06923d0ffd8f72e4c1c33893097d79b6fb46c8eb1395ab4b8e104c4f45 |
|
MD5 | 274c709c702562a2cb7b0ed0e939c80b |
|
BLAKE2b-256 | 56079ec2ab2c2cb84793425c77a8d51b06920a1b11d24522e636ffec5db4b17a |