A timer for python code
Project description
import timer1101 as timer
if __name__ == "__main__":
timer.starte("test0")
# some codes
timer.starte("test1")
# some codes
timer.stope("test0")
# some codes
timer.stope("test1")
import timer1101 as timer
import logging
import coloredlogs
import verboselogs
verboselogs.install()
coloredlogs.install(level=logging.INFO)
logger = logging.getLogger("timeLogger")
timer.rootTimer.outputfunc = logger.info
if __name__ == "__main__":
timer.starte("test")
# some codes
timer.stope("test")
from timer1101 import timefunc
@timefunc()
def func(l):
for i in range(l):
print(i)
return l
if __name__ == "__main__":
ret = func(10)
print(ret)
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
timer1101-0.0.3.tar.gz
(2.8 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 timer1101-0.0.3.tar.gz.
File metadata
- Download URL: timer1101-0.0.3.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61169cc1d362d7e17db22ece223d6e6a4d5a1307f9ab1761b3e49e174c04d7e4
|
|
| MD5 |
599c7cfcd7843685ef8ed06c7e8ffdcb
|
|
| BLAKE2b-256 |
40c48a465443262f62a70b56319b20abf2474f5d51176ce29565bda54e3f11a7
|
File details
Details for the file timer1101-0.0.3-py3-none-any.whl.
File metadata
- Download URL: timer1101-0.0.3-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e430cb8146bd316c71518e8d3c50ad605f5fe522ef73e1e136f5eac541de48f0
|
|
| MD5 |
039bfccdc73fe959386ea99c3f1bd09d
|
|
| BLAKE2b-256 |
dca03322132b17ec055ad0181f2ff269f549f03f8ad61ae56deed40bc629c61b
|