Program timer.
Project description
new_timer
Calculate the program elapsed time.
ManualTimer Example
from new_timer.timer import ManualTimer
timer1 = ManualTimer(string="Print 0 ~ 9999", decimal=2)
for i in range(10):
timer1.start()
for i in range(99999):
print(i)
timer1.stop()
AutoTimer Example
from new_timer.timer import AutoTimer
a = 0
with AutoTimer("Pring 0 ~ 9999999", decimal=2)
for i in range(9999999):
a += i
print(a)
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
new_timer-0.0.2.tar.gz
(3.0 kB
view details)
Built Distribution
new_timer-0.0.2-py3-none-any.whl
(15.7 kB
view details)
File details
Details for the file new_timer-0.0.2.tar.gz
.
File metadata
- Download URL: new_timer-0.0.2.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1e1985d1638f2de8c87659b76e12ba26d58df1274dbec2cb1263fe3eca2dfd7 |
|
MD5 | b2629deafdc92d3f6fe80f181b6fa780 |
|
BLAKE2b-256 | 4851d2e904046e3669dab07f60e38b2770ac1d8a912c70e4140920b94ac44a17 |
File details
Details for the file new_timer-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: new_timer-0.0.2-py3-none-any.whl
- Upload date:
- Size: 15.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.0 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa9bef1dc7877819e57f46dad1eacc72b249e5534fa1465b5a4f34e706df02b3 |
|
MD5 | b57ff253979973a4c1cc8dc0cac4abfe |
|
BLAKE2b-256 | 02645ae190431bd437c0759e14f42fbf05815daf0e69e3985347199cf1218cd3 |