Why Browser Timers Drift (And How to Build One That Does Not)
The obvious way to build a timer is wrong in a way you only notice after an hour, or after switching tabs. The fix is one line of thinking and it changes everything.
Press start. Lap records a split and a running total. Switching tabs does not lose time.

Workflow Lifecycle & Pipeline
Visual execution flow showing how Stopwatch processes data directly in your local browser sandbox.
Stopwatch Interactive Process Pipeline
Fast, zero-latency execution directly in your browser memory.
Before You Start
Ensure your source assets and browser environment meet the verified execution requirements.
Step-by-Step Instructions
Follow these verified steps to execute the task with Stopwatch.
Open Stopwatch
Stopwatch is the page itself: there is no form to fill in and no Run button. Everything happens as you use it.
Open the pageStopwatch readyStart, lap and reset
Press start and the clock runs. Lap records a split without stopping it; reset clears both the clock and the laps.
Start, lap and resetUpdates as you use itTake the result away
Read the elapsed time and the lap list off the page. There is no file and nothing to download.
Read it off the pageShown in the toolUnder the Hood: In-Browser Algorithmic Computation
Every operation in this utility executes locally in your browser session using high-speed algorithmic transformations. Data inputs are immediately processed in volatile client memory and rendered to screen in sub-millisecond execution cycles.
Immediate Real-Time Computation
Zero server roundtrips guarantee sub-millisecond responsiveness with instant feedback.
Full Data Sovereignty
Your proprietary inputs, calculations, and conversions never travel across public networks.
Offline Capable Execution
Once loaded, the engine works seamlessly even during complete network disconnections.
Best Practices & Key Considerations
Avoid common quality pitfalls and maximize output performance.
Expert Recommendations
- setInterval never fires at exactly its interval, and a counter adds every error permanently. Over an hour that is typically several seconds.
- Background tabs are throttled to about once a second, sometimes once a minute. A tick-counting timer left hidden for ten minutes can come back minutes short.
- Storing the start instant and subtracting means a late interval costs nothing — the next frame is correct regardless.
- Lap rows show both the split since the last lap and the running total, because runners want one and presenters want the other.
Common Mistakes to Avoid
- Looking for a Run button - Stopwatch is the page itself, and it works as you use it.
- Expecting it to keep going after the tab is closed. It lives in the page, so closing the page ends it.
- Treating what is on screen as a saved record. Nothing is uploaded and nothing is submitted, so take a copy of anything you need to keep.
Troubleshooting & Fixes
Quick solutions for common browser constraints, format issues, and edge cases.
Troubleshooting & Common Issues
The laps are gone after a reload
Possible Cause: The clock and the lap list live in the page, and a reload is a new page.
Nothing on the page responds
Possible Cause: Stopwatch is built in the page itself rather than sent to a server, so it needs JavaScript enabled in this tab.
Frequently Asked Questions
Everything you need to know about formats, privacy, and browser support.
Related Step-by-Step Guides
Explore companion workflows, optimization techniques, and verified tutorials.