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.11.tar.gz (3.9 kB view hashes)

Uploaded Source

Built Distribution

new_timer-0.0.11-py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 3

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