stopwatch.py-2.0.1


توضیحات

A simple stopwatch for python
ویژگی مقدار
سیستم عامل OS Independent
نام فایل stopwatch.py-2.0.1
نام stopwatch.py
نسخه کتابخانه 2.0.1
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Ravener
ایمیل نویسنده ravener.anime@gmail.com
آدرس صفحه اصلی https://github.com/ravener/stopwatch.py
آدرس اینترنتی https://pypi.org/project/stopwatch.py/
مجوز MIT
Stopwatch.py ============ A simple stopwatch for Python. Install ------- Requires Python 3.5+ .. code:: sh pip install stopwatch.py Usage ----- .. code:: py from stopwatch import Stopwatch # Argument specifies decimal precision for __str__ # e.g 2 digits = 1.00, 3 digits = 1.000 # Optional, defaults to 2 stopwatch = Stopwatch(2) # Start a stopwatch # It's just math with time.perf_counter() so there isn't really a task # running in background stopwatch.stop() # Stop stopwatch, time freezes stopwatch.start() # Start it again stopwatch.reset() # Reset it back to 0 stopwatch.restart() # Reset and start again stopwatch.running # Whether stopwatch is running stopwatch.duration # Get the duration (in seconds) str(stopwatch) # Get a friendly duration string License ------- MIT


زبان مورد نیاز

مقدار نام
>=3.5 Python


نحوه نصب


نصب پکیج whl stopwatch.py-2.0.1:

    pip install stopwatch.py-2.0.1.whl


نصب پکیج tar.gz stopwatch.py-2.0.1:

    pip install stopwatch.py-2.0.1.tar.gz