Lap 1
- Input
- Marcar aos 12,34s
- Expected output
- Total 00:12.34 · Split 00:12.34
On the first lap, total and split are identical because there is no previous mark to subtract against.
stopwatch laps splits
Lap and split sound like synonyms, but they measure two different things: a lap is the total time accumulated from the start up to that instant, and a split is just the piece between the previous lap and this one, the interval for that isolated segment. The stopwatch records both for every mark, with no manual math required.
On the first lap, total and split are identical because there is no previous mark to subtract against.
The 12.76s split is the difference between 25.10s and the previous total of 12.34s: this segment took a little longer than the first.
A much smaller 5.40s split shows this third segment was covered noticeably faster than the previous two.
The duration stays correct because it is always recomputed from the difference between two readings of the monotonic clock, not by adding up ticks. What may slow down is the on-screen drawing, since browsers throttle frame scheduling in hidden tabs. When you return to the tab, the displayed number jumps straight to the right value.
A lap is the total time accumulated from the start up to that mark; a split is just the interval between the previous mark and this one. Across a lap sequence of 12.34s, 25.10s and 30.50s, the splits are 12.34s, 12.76s and 5.40s: the lap total always grows, the split moves up and down segment by segment.
Because the split is calculated by subtracting the previous mark's total, and the very first mark has no previous mark to subtract; the stopwatch treats that case as zero, so lap 1's split always equals its own total.
Up to 200 marks per session, each one numbered in sequence starting at 1 and storing both a total and a split; past that limit, the session needs to be reset to keep recording.
When the goal is comparing the pace of one segment against another, for example checking whether the second segment was faster than the first; the total remains the reference for knowing how much time has passed since the very beginning.
Times, laps and sessions stay in this browser's local storage only and are never sent to a server.