A simple Python package for clocking
Project description
ticktocker
ticktocker is a Python package that helps you measure the time taken by code execution. It provides a simple and intuitive way to track performance and optimize your code.
Todos
- CI/CD
- Unit tests
- Git branching
- Add templates for PR and issues.
Features
Context Manager
ticktocker supports to measure the time taken by a block of code using a context manager.
from ticktocker import clock
with clock() as sw:
...
print(sw.elapsed)
Decorator
ticktocker also supports to measure the time taken by a function using a decorator.
from ticktocker import clock
@clock
def my_function():
...
my_function() # Elapsed time: ...
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
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 ticktocker-0.1.tar.gz.
File metadata
- Download URL: ticktocker-0.1.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.14.0a6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7970dec94ef080bf7d12f479df1cd979a2d1f893745bc8d8574f591a34e080a
|
|
| MD5 |
8fd7fc1ccbdd5edcc0f63891e60f1f6a
|
|
| BLAKE2b-256 |
97b0ad08982e781012640eab4f6de53263bddfa6681ffcdf43555235ea8d8b91
|
File details
Details for the file ticktocker-0.1-py3-none-any.whl.
File metadata
- Download URL: ticktocker-0.1-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.14.0a6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc484855f487fc68eb3b86c57e18551a484f65aa4807010b6cb0424410a1d166
|
|
| MD5 |
3a0019e21e476f37b32cccb6600a5ff9
|
|
| BLAKE2b-256 |
d447b4760181d80dc48a572d9484edb61dc6651842a8e315db0bfdafa90eb89b
|