PyStopwatch
PyStopwatch is a simple GUI stopwatch application.
Installation
PyStopwatch is published on PyPI and can be installed from there:
pip install pystopwatch
Usage
To get started right away, run the following command:
pystopwatch
You can run PyStopwatch as a package if running it as a script doesn’t work:
python -m pystopwatch
Adjust the time interval[ms] and run the application:
pystopwatch --interval=1
Import the module and use it:
from pystopwatch import Stopwatch
sw = Stopwatch()
sw.run()
pystopwatch
Graph
Class Graph
![digraph "classes" {
rankdir=BT
charset="utf-8"
"pystopwatch.pystopwatch.Stopwatch" [color="black", fontcolor="black", label="{Stopwatch|after_id : int, NoneType\lapp : Tk, NoneType\linterval : int\llabel : Label, NoneType\lstart_flag : bool\lstart_time : int\lstop_elapsed_time : int\lstop_flag : bool\l|clear()\lrun()\lstart()\lstop()\lupdate_time()\l}", shape="record", style="solid"];
}](_images/graphviz-5a19fa68e87a073b0310bd1ab7f147f296f0bfe7.png)
Package Graph
![digraph "packages" {
rankdir=BT
charset="utf-8"
"pystopwatch" [color="black", label="pystopwatch", shape="box", style="solid"];
"pystopwatch.__main__" [color="black", label="pystopwatch.__main__", shape="box", style="solid"];
"pystopwatch.pystopwatch" [color="black", label="pystopwatch.pystopwatch", shape="box", style="solid"];
"pystopwatch" -> "pystopwatch" [arrowhead="open", arrowtail="none"];
"pystopwatch.__main__" -> "pystopwatch" [arrowhead="open", arrowtail="none"];
}](_images/graphviz-223870f49d0e9333e0392bbf20ea9571ce3b0988.png)