How Precision Stopwatch Timing Works (Calculation Method)
Sub-millisecond timing uses high-resolution monotonic clock APIs to avoid system clock drift.
Current Elapsed Duration = (performance.now() - Start Time) + Accumulated Pause Duration
Monotonic Start Benchmark
Record initial start timestamp using performance.now() upon pressing Start.
Delta Accumulation
On tick frame, calculate current elapsed duration = performance.now() - startBenchmark + accumulatedOffset.
Lap Snapshot Logging
On Lap click, record current elapsed snapshot and calculate lap delta = current snapshot - last lap snapshot.
Formatting & Render
Format duration into zero-padded Minutes, Seconds, and Hundredths of a Second.