Skip to main content

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


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.8.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

new_timer-0.0.8-py3-none-any.whl (15.9 kB view details)

Uploaded Python 3

File details

Details for the file new_timer-0.0.8.tar.gz.

File metadata

  • Download URL: new_timer-0.0.8.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.1.2.post20210112 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.12

File hashes

Hashes for new_timer-0.0.8.tar.gz
Algorithm Hash digest
SHA256 5eccf5c43e097a8b5eaa3e5cc91a6e3b2fe64653c32aaf3ca01d198986412033
MD5 6a886f8e9061090895e753fb5901d5dc
BLAKE2b-256 39b1d49a24f10b57e53c44bf8fe6e68b371aca9b822bea915841d6bf83664643

See more details on using hashes here.

File details

Details for the file new_timer-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: new_timer-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 15.9 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.1.2.post20210112 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.6.12

File hashes

Hashes for new_timer-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 49bdc469be1493241290e69ba0620ca3eb726defe4be65ed4943b1068f5858a1
MD5 cf12fbc25d1d18bd6c6e16dc993d5827
BLAKE2b-256 d1be1fa92d8d75bef16599f41df99652958c769cd170ffcb49d8b1a9b562d032

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page