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

Uploaded Source

Built Distribution

new_timer-0.0.6-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for new_timer-0.0.6.tar.gz
Algorithm Hash digest
SHA256 fbc21d8bcfb27ec006998e682d0d51189689485630a7bafe85d91fbc2b6ef120
MD5 a5b2763edd265f1cf1bb0c88a4458153
BLAKE2b-256 dac2a943ee5d06155d291df8a064b612b73c585e9eac7f33513497c913a7b71a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: new_timer-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 15.7 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 002d04558e5ffdf8968f540e4b805d11f09021d5878849a86fdb9ec759cea369
MD5 9f874edc0ed0423c1fcf30a8454dfab3
BLAKE2b-256 b82751408745c92f6b0cd5bac0ccdfbadb565ce6acd553f550ce5292fd1b4f77

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