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.1.tar.gz
(2.9 kB
view details)
Built Distribution
new_timer-0.0.1-py3-none-any.whl
(15.8 kB
view details)
File details
Details for the file new_timer-0.0.1.tar.gz
.
File metadata
- Download URL: new_timer-0.0.1.tar.gz
- Upload date:
- Size: 2.9 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 | 1cd880a21094d796b9088ba075b770812ee8338a778331598ae267b31786786e |
|
MD5 | 428d212563e7039172460c0d090aa087 |
|
BLAKE2b-256 | a96fa7fab0fe4394381c92f1f2c3da8733b8a51b1455f35ae344753c7107e9b8 |
File details
Details for the file new_timer-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: new_timer-0.0.1-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 | c27a03658710be5ae6d7737a5854b0bbdee870e734d916c33387c5d72f6694c4 |
|
MD5 | 9c046784c6b657e44c88fa414c43daf4 |
|
BLAKE2b-256 | 4717c1fc3c7eac492a526120dc085ed1a244e0f7eab051aff5fe5820ef470a28 |