This is a fork from python-stopwatch, which adds static typing and a few other things.
- This package requires python 3.7 or higher.
poetry add python-stopwatch2Other platform? ➜ https://stopwatch2.vercel.app/guide/getting-started.html
from stopwatch import Stopwatchsw = Stopwatch()from time import sleep
sleep(2)sw.stop()print(f'Time elapsed: {sw.elapsed}') # Time elapsed: 2.0031827000002522
# or
print(f'Time elapsed: {sw}') # Time elapsed: 2.00sYou'll find installation instructions and full documentation on https://stopwatch2.vercel.app.
Run the tests with:
poetry run task testPlease see CHANGELOG for detailed changes for each release.
Please see CONTRIBUTING for details.
-
Copyright (c) 2021-2022 Jonghwan Hyeon, 2022-present Rafael





