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.5.tar.gz
(3.0 kB
view hashes)
Built Distribution
new_timer-0.0.5-py3-none-any.whl
(15.8 kB
view hashes)
Close
Hashes for new_timer-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b815b18c60e4fb7fae361d2ceef16b0eda4f6016e1196e03cbd4352f2ad13183 |
|
MD5 | 6eddeb342458e216b1de43920c533c65 |
|
BLAKE2b-256 | bb7a31eb2694fc79f38f6ec6bb6d961a89108a34d84f770963c6f997c57246f1 |