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

Uploaded Source

Built Distribution

new_timer-0.0.10-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: new_timer-0.0.10.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.11

File hashes

Hashes for new_timer-0.0.10.tar.gz
Algorithm Hash digest
SHA256 4fc33a2f7de1a90ecf44a93b314c2c90b27b455b70dd7fe85c452dcd0f9f1940
MD5 e06a637f79915dd0573f5595631469c4
BLAKE2b-256 0afd0eb6f71ef070a7ba9fabc9665455998504a88ca5315003e23d52f0317c66

See more details on using hashes here.

File details

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

File metadata

  • Download URL: new_timer-0.0.10-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.11

File hashes

Hashes for new_timer-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 ecdb03d53f83e6f51942ba384b95fee533855d6c76a392ac54533c20c22776ad
MD5 a73b2e98cdc86113491bf341acada6c0
BLAKE2b-256 9ae014bd877c31e2fd2e8562d573a5dc96b55033443c0123c60f44dd04c5a59b

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