Multi-Stopwatch
September 13, 2023 | Tags: programming
Hello, I just want to share a quick project that I made yesterday over the span of about 2 hours. It’s a stopwatch web app that lets you have multiple named stopwatches at the same time. I made this because I wanted to start a new stopwatch without resetting the one I already had in progress. (To be entirely honest, I don’t get why Clock apps don’t have multiple stopwatch support. They let you set multiple alarms, and multiple timers, but for stopwatches you have to use just one?). I know there are other stopwatch apps that do this, but I figured this would be easy to make regardless.
All the stopwatches are saved in localstorage, so your stopwatches and their times will be restored when you load the page. If you leave one running, it’ll even keep running if you close the page!
Things to Note #
Here are some potential issues I noticed while making Multi Stopwatch:
- The maximum limit for the timer is currently 24hrs, at which point it will roll over. I’ll probably fix this in a bit…
- When you stop a timer, there’s a slight discrepency between what the timer stops at and what actually gets saved to localstorage, causing the timer to jump slightly when you refresh the page. It’s usually a discrepency of just a couple MS. This is probably fixable, but for what I am using this for it’s not a big deal.
Try It! #
If you’d like to try it, you can do so at Multi Stopwatch. The source is also available at Rayquaza01/multi-stopwatch.