Easily measure time
Project description
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tados_stopwatch-0.0.1.tar.gz
(1.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tados_stopwatch-0.0.1.tar.gz.
File metadata
- Download URL: tados_stopwatch-0.0.1.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bbcb626e976ccef6e05a30b2d6ba4a1cb772b69c801f06405809b1a3c0f35619
|
|
| MD5 |
6f9bab6d0b70d011f079a8126d331a76
|
|
| BLAKE2b-256 |
aa2b655d1c929b7796cf3f9ae0b264bb89a50e850ae9026d9c8eb922673c1000
|
File details
Details for the file tados_stopwatch-0.0.1-py3-none-any.whl.
File metadata
- Download URL: tados_stopwatch-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca4f587a225c48ead47717c0eb84f42274782b1a64e204ec1f53a1d9a0f43ee8
|
|
| MD5 |
b6a948100289d711a1cd5d458c997ac8
|
|
| BLAKE2b-256 |
88b438c8da189d687bfb3503bc43efd009277d38a2bc008e8844c3f796b1efc1
|