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

Uploaded Source

Built Distribution

new_timer-0.0.3-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: new_timer-0.0.3.tar.gz
  • Upload date:
  • Size: 2.8 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

Hashes for new_timer-0.0.3.tar.gz
Algorithm Hash digest
SHA256 c7fe7fd298836efdf09c23ee578c64c91a39eb4f86de2c73408b8d3533a64b23
MD5 5d4e5f9eec15e756f7025474beca54bd
BLAKE2b-256 9674477bd29918cbb7354209118bcf5d6da7504c39a9b6626aa38843c4611023

See more details on using hashes here.

File details

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

File metadata

  • Download URL: new_timer-0.0.3-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

Hashes for new_timer-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e6383eccfa52edf6145040e270a48b99acb015923a9c2575ac81f0556bd2b83e
MD5 5923f2f79508d83902201b9f099518c5
BLAKE2b-256 8e9c7e0d4b0779ba959f946d0262e3a5d3fca689c301123c1d260d1f19051119

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