Skip to main content
simplestopwatch is a very simple Python module for measuring time.
Great for finding out how long code takes to execute.

>>> import simplestopwatch as sw
>>> t = sw.Timer()
>>> t.elapsed
3.8274309635162354
>>> print t
15.9507198334 sec
>>> t.stop()
30.153270959854126
>>> print t
30.1532709599 sec

Decorator exists for printing out execution times:
>>> from simplestopwatch import clockit
>>> @clockit
def mult(a, b):
return a * b
>>> print mult(2, 6)
mult in 1.38282775879e-05 sec
6

Metadata

Release files for simplestopwatch 0.3.3

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

Source distribution (sdist)

Source distribution for simplestopwatch 0.3.3
File Size Uploaded
simplestopwatch-0.3.3.zip 5.1 kB Details

Release files / simplestopwatch-0.3.3.zip

Download URL simplestopwatch-0.3.3.zip
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
303fdcde070a14c490477783f9e8819b0da5b819a1f0260ae1c73066b615f7cc
BLAKE2b-256 checksum
How to use checksums
f1db0fe78106f07cce55d878796afbd5d1e4e755b4e4ba2b8da304817c806337
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.3.3 This release

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