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.11.tar.gz
(3.9 kB
view details)
Built Distribution
File details
Details for the file new_timer-0.0.11.tar.gz
.
File metadata
- Download URL: new_timer-0.0.11.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4fca6bf29cd3e26939955b8c36119e0cd6001bbc15320b19e3c9b20e8868b81 |
|
MD5 | f6e8d1c68eea0374c998e1a8d7af20f7 |
|
BLAKE2b-256 | b9e39f7311cc9a5475b7bec19061f21d523d4ec48601313f205a7e2e1e8d2e9b |
File details
Details for the file new_timer-0.0.11-py3-none-any.whl
.
File metadata
- Download URL: new_timer-0.0.11-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b656e276e70a0a09346b2623dfdbbde3c477a8aaaaf5e77577daaa894ee4ae7 |
|
MD5 | 1e3fc603987404c3dbe13f6709f0cdcf |
|
BLAKE2b-256 | cb2c2e3abfa40fcc8eee1d1286de1c6851262b2a903dbb71636d45240d9cd295 |