Quickly time functions easily
Project description
QuickTimeKeeper
QuickTimeKeeper is a small Python library for timing how long functions take to run.
Usage
Simply import QuickTimeKeeper and call the time_function method to time any function you pass in as the parameter. It returns how long the function took to run. Optionally, you can pass in extra args to time_function which will be passed into the function to time.
import quicktimekeeper as quicktimer
def fibonacci(n):
if n < 2:
return n
else:
return fibonacci(n-1) + fibonacci(n-2)
time_taken = quicktimer.time_function(fibonacci, n=10)
print(f"It took {time_taken} ms to run fibonacci(10)")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 quicktimekeeper-1.0.0.tar.gz.
File metadata
- Download URL: quicktimekeeper-1.0.0.tar.gz
- Upload date:
- Size: 1.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a26c0229aa5f4576fb64a156ba4296af2ca1c9c8efc01e288b0148d5e27d5422
|
|
| MD5 |
685e3c05607b8b83b02a78d2e8fa8b43
|
|
| BLAKE2b-256 |
63a20fc53fa483a894338f95d389c85a105ac92123c53549fca13376a95c2c32
|
File details
Details for the file quicktimekeeper-1.0.0-py3-none-any.whl.
File metadata
- Download URL: quicktimekeeper-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9eb5ad3952c228f2ef7798a9d5656a12b56b21a5a6ddc9721ecaa6764314cd24
|
|
| MD5 |
629ae9cc77aa4d24df63d002bc0b01b2
|
|
| BLAKE2b-256 |
d66386e04b228be2e06427984ab47bf7849245b47385f11d9aa9ea473f519579
|