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.4.tar.gz
(2.8 kB
view details)
Built Distribution
new_timer-0.0.4-py3-none-any.whl
(15.8 kB
view details)
File details
Details for the file new_timer-0.0.4.tar.gz
.
File metadata
- Download URL: new_timer-0.0.4.tar.gz
- Upload date:
- Size: 2.8 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 | 6fc23d0fca4c3bdc5b410115c464a996a4e19197aaa3c98e751ef66998c4359f |
|
MD5 | 730b2d20c4c26fbb6dc1eb53e33a6ae9 |
|
BLAKE2b-256 | 062cea616ec028558cb06de35c471132eca0eb58b8c2251bb0223660699535b9 |
File details
Details for the file new_timer-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: new_timer-0.0.4-py3-none-any.whl
- Upload date:
- Size: 15.8 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 | ad7272aba317b7ac86910165f2caee8c2205c570f6df6caa281faa138ce6a1f4 |
|
MD5 | 6e62d8b8065276c6541ebb91b54c93bf |
|
BLAKE2b-256 | 5b2337e92da5b77570ebb38a7f1d7c19f8496101c244ad26397f34879c7d20b9 |