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.9.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for new_timer-0.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a5e6266d62664b14e24518279d95c96702bf1700925b7f76734015d6bcca377 |
|
MD5 | 21c91b7ee8cc162e63d0b603624c283a |
|
BLAKE2b-256 | cf8aa87404d489ddcb21d8a81fcc462d2745b2ccc384661763a1b0c3008f30c9 |