This is simple JS stopwatch that uses setinterval
. It displays hour, minutes, seconds and milliseconds.
It has 3 buttons :
- Start
- Stop
- Reset
Method | Description |
---|---|
startStopWatch() |
Start a stopwatch |
stopStopwatch.() |
Pause a stopwatch. |
resetStopwatch() |
Reset a stopwatch. |
Before you begin, ensure you have met the following requirements:
- Git must be installed on your operating system.
To run Stopwatch locally, run this command on your git bash:
Linux and macOS:
sudo git clone https://github.com/yashk9293/Stopwatch.git
Windows:
git clone https://github.com/yashk9293/Stopwatch.git
If you want to contact me you can reach me at Twitter.
This project is free to use and does not contains any license.