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 hashes)
Built Distribution
new_timer-0.0.4-py3-none-any.whl
(15.8 kB
view hashes)
Close
Hashes for new_timer-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad7272aba317b7ac86910165f2caee8c2205c570f6df6caa281faa138ce6a1f4 |
|
MD5 | 6e62d8b8065276c6541ebb91b54c93bf |
|
BLAKE2b-256 | 5b2337e92da5b77570ebb38a7f1d7c19f8496101c244ad26397f34879c7d20b9 |