Stopwatch & Timer
About the Stopwatch & Timer
This online stopwatch and countdown timer measures elapsed time to the hundredth of a second with lap splits, and counts down from any duration up to 99 hours with an audible alarm. Both are based on your browser's monotonic clock, so they stay accurate when the tab is in the background.
Why browser timers drift and this one does not
A naive web stopwatch adds 10 ms every time a setInterval fires. Browsers slow or pause those callbacks in background tabs and on busy pages, so the total falls behind real time.
This tool records the moment you press Start using performance.now(), a monotonic clock that is not affected by system clock changes, and computes the elapsed time from that each time the screen repaints. If the tab is hidden for five minutes, the display simply catches up with the correct value when you return.
Lap time vs total time
When you press Lap, the stopwatch saves the total elapsed time. The lap table shows two columns for each entry: Lap time, the time since the previous lap (the split), and Total, the running time when the lap was recorded. The newest lap appears at the top.
Times are shown as MM:SS.cc, with hours added in front once the stopwatch passes 60 minutes, for example 01:02:03.45.
How the countdown alarm works
When a countdown reaches zero the display reads "Time's up!" and the page plays three short 880 Hz beeps generated with the Web Audio API. A timeout is scheduled for the exact end time, so the beep still fires when the tab is in the background; browsers may delay it by a moment.
The first time you start a countdown, the browser may ask for notification permission. If you allow it and the tab is hidden when the timer ends, you also get a desktop notification. The countdown display rounds up, so 00:01 stays visible until the last second has fully elapsed.
How to Use the Stopwatch & Timer
- Pick the Stopwatch tab to count up or the Timer tab to count down. A dot on a tab means it is running.
- Stopwatch: press Start, use Lap to record splits while it runs, Pause to stop, Resume to continue and Reset to clear the time and laps.
- Timer: enter Hours, Minutes and Seconds, or click a preset (1, 5, 10 or 25 min).
- Press Start to begin the countdown, Pause to hold it and Resume to continue from where it stopped.
- When the alarm sounds, press Reset to load the same duration again.
Frequently Asked Questions
- Does the timer keep running if I switch tabs?
- Yes. Time is calculated from timestamps, so it stays correct in a background tab, and the alarm is scheduled to fire even when the tab is hidden.
- Why did I not hear the alarm?
- Check that the tab is not muted and your device volume is up. Some browsers block audio until you have interacted with the page; pressing Start counts as interaction.
- How precise is the stopwatch?
- It displays hundredths of a second and uses a clock with sub-millisecond resolution. Human reaction time on the Start and Lap buttons is the main source of error.
- Will my time survive a page reload?
- No. The stopwatch, laps and countdown live in memory only, so reloading or closing the tab resets them.
- Do you collect any data?
- No. Everything runs in your browser. Notification permission is handled by your browser and is only used to show the "Time's up!" message.