This is a simple stopwatch class. Example:
from tados_stopwatch import Stopwatch
import time
s = Stopwatch()
s.start()
time.sleep(3)
print(s.get())
time.sleep(2)
s.stop()
print(s.get())
s.reset()
s.set(14)
s.bind(3, lambda: print("3 seconds have passed"))
while s.get() < 5:
print("Updated")
time.sleep(1)
Release files for tados-stopwatch 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tados_stopwatch-0.0.2.tar.gz | 1.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tados_stopwatch-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.1 kB
Release files / tados_stopwatch-0.0.2.tar.gz
| Download URL | tados_stopwatch-0.0.2.tar.gz |
|---|---|
| Size | 1.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e209e762b16014aed52e44a5cfd3d57ddee958c4ef811bf9c9bd1b85241f7ba5
|
|
BLAKE2b-256 checksum How to use checksums |
ec37940cc6862cf59edfb2cab314265901ac8f9509855863461fc7701f2006b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.2
|
Release files / tados_stopwatch-0.0.2-py3-none-any.whl
| Download URL | tados_stopwatch-0.0.2-py3-none-any.whl |
|---|---|
| Size | 2.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
06bffd649f2af9b3ee157ef4ef360a0e1ead5a88dbe823e918072efeaebaac02
|
|
BLAKE2b-256 checksum How to use checksums |
8dac651f14a2a3143db10307960f157e545ae508bdf4c4a9603617f651b5f2bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.2
|