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 details)
Built Distribution
File details
Details for the file new_timer-0.0.9.tar.gz
.
File metadata
- Download URL: new_timer-0.0.9.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.1 setuptools/52.0.0.post20210125 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f8d2cd0205f89fb3aa9a2e3acc5febc3c956bf464f398084ae436a7ac3499a0 |
|
MD5 | 05bc428f7ef5e340c5f10ac72af3e27b |
|
BLAKE2b-256 | 1842298e0f0c347775e8e14cf1a1e984598f07d7503b763484c904b8e2fc913d |
File details
Details for the file new_timer-0.0.9-py3-none-any.whl
.
File metadata
- Download URL: new_timer-0.0.9-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/52.0.0.post20210125 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a5e6266d62664b14e24518279d95c96702bf1700925b7f76734015d6bcca377 |
|
MD5 | 21c91b7ee8cc162e63d0b603624c283a |
|
BLAKE2b-256 | cf8aa87404d489ddcb21d8a81fcc462d2745b2ccc384661763a1b0c3008f30c9 |