=============
Stopwatch interface for Python. Currently supports two modes: timing execution (:class:`Stopwatch`), and pausing the completion of a block of code until a specified time has elapsed :class:`Blocker`.
Stopwatch usage
---------------
::
with Stopwatch() as s:
do_a()
do_b()
print s.duration() # time it took to execute do_a() and do_b()
do_c()
print s.duration() # time it took to execute do_a(), do_b(), and do_c()
if s > 3: # comparators implicitly evaluate duration
print 'took longer than 3 seconds'
Blocker usage
-------------
::
with Blocker(3) as w:
print 'Happens immediately!'
time.sleep(1.5) # executes immediately
# ... we wait here until 3 seconds have passed
print '3 seconds have passed!'
Metadata
Release files for timely 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| timely-0.1.tar.gz | 2.4 kB | Without provenance | Details for timely-0.1.tar.gz |
Release files / timely-0.1.tar.gz
| Download URL | timely-0.1.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
606ace9b90e083068255e47c5dcc44aca909bbc66edc4f54b82b2ec6e4a416e9
|
|
BLAKE2b-256 checksum How to use checksums |
31d747966f01701db2bf38324bef3e7d9202a55ffa9b23113d99353bfecc69d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for timely 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.