Skip to main content

StopWatch

This is a simple python utility for tracking time of operations.

Usage

StopWatch can be used manually.

from stopwatch import StopWatch

stopwatch = StopWatch()
stopwatch.start()

# Do some operations to be timed

stopwatch.stop()
stopwatch.display_elapsed() # writes to stdout using print()

Or it can be used as a context manager

from stopwatch import StopWatch

with StopWatch():
    # Perform some operations here in place of pass
    # StopWatch will call display_elapsed() upon exiting 
    # 'with' block
    pass

Release files for my-stopwatch 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for my-stopwatch 1.0.1
File Interpreter ABI Platform
my_stopwatch-1.0.1-py3-none-any.whl Python 3 none any Details

Release files / my_stopwatch-1.0.1-py3-none-any.whl

Download URL my_stopwatch-1.0.1-py3-none-any.whl
Size 2.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2c2eaf57376320e97fc9702069260b889dda72b83979e8363e75d8782dbc03dc
BLAKE2b-256 checksum
How to use checksums
76d4de52f2015f669403aa08a34121b0142a5d4707fe9a1adc059e5ab783d6d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.6

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page