Package Description
timeN is a simple package that contains a customizable @timen decorator which times how long it takes (in milliseconds) for the decorated function to run n times
Usage
The timen decorator is quite simple to use. it can be imported by simply importing the timeN package with
import timeN
From there, the timeN decorator can be used like any other decorator, with the exception that you must end the decorator in parentheses since it takes optional parameters
@timeN()
def foo():
print("Hello World")
Output:
Hello World
...
Hello World
foo took 2.0 milliseconds to run 10 times
The 2 optional parameters are: n (number of times to run the function) and round_to (number decimal places to round the final result to).
@timeN(100, 5)
def foo():
print("Hello World")
Output:
Hello World
...
Hello World
foo took 11.99365 milliseconds to run 100 times
Metadata
Release files for timeN 1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| timeN-1.tar.gz | 4.1 kB | Without provenance | Details for timeN-1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| timeN-1-py3-none-any.whl | Python 3 | none | any | Details for timeN-1-py3-none-any.whl |
Total release size: 7.7 kB
Release files / timeN-1.tar.gz
| Download URL | timeN-1.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e027b171bff6dd585f419d66a7e459c0423ef28938967bb2071a661cc7786274
|
|
BLAKE2b-256 checksum How to use checksums |
13973687b7d4964fdf95c2d81999d8c316da4d75512729a76f445620177b8cc6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.18
|
Release files / timeN-1-py3-none-any.whl
| Download URL | timeN-1-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2e15550973db1a9e1d1e814ce09b576bff94c5c73d361b6622e08d785b25c769
|
|
BLAKE2b-256 checksum How to use checksums |
c18642d5d7a548a6a65619dcd79444ac481a4e0ed414717887d842c434496d4d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.18
|
Security for timeN 1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.