The easy stopwatch that is the best
Project description
Stopwatch
Homely stopwatch that can do everything that you want
Installation
pip install easy-stopwatch
Documentation
- Stopwatch(flags_limit:int = 10, ticks:int = 1)
- This class creates a stopwatch
- ticks in seconds
- start() --> None
- This function start a stopwatch
- stop() --> None
- This function stop a stopwatch
- turn_off() --> None
- This function turn off a stopwatch
- time() --> float
- This function return time
- put_flag() --> list
- This function save a time in flags
- When you put up a flag
- flags[0] - first flag
- flags[1] - second flag
Usage
- Import class Stopwatch:
from easy_stopwatch import Stopwatch
- Create object stopwatch:
stopwatch = Stopwatch()
- Start stopwatch:
stopwatch.start()
- Print time:
print(stopwatch.time())
Example code
from easy_stopwatch import Stopwatch
stopwatch = Stopwatch()
stopwatch.start()
while 1:
print(int(stopwatch.time()))
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
easy_stopwatch-1.0.3.tar.gz
(1.9 kB
view details)
File details
Details for the file easy_stopwatch-1.0.3.tar.gz
.
File metadata
- Download URL: easy_stopwatch-1.0.3.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3d8688b66e9afcc3ee0ba2d2b42fbef710ebf7bea07de16f25ae2ef1d5c1089 |
|
MD5 | c7b26f8b7f429e800b81ca1eebd5195f |
|
BLAKE2b-256 | 48d91e3ad8ef7f5e771fbae6b4d57d96b50c592ade29d23651b16c5eee4dffb6 |