EgoTools Deep Dive · Original explainers for curious humans
WEB TECH · MEASUREMENT

How Browser Timing Tests Measure Milliseconds

When a browser says “241 ms,” it really did measure an interval with a high-resolution clock. The tricky part is understanding what the interval starts and ends on.

What this isAn original EgoTools explainer
What this is notMedical or diagnostic advice
MethodClaims kept narrower than the measurement

The browser has a high-resolution monotonic clock

Modern web apps can use performance.now(), which provides a high-resolution timestamp designed for measuring durations. Unlike wall-clock time, it is monotonic: it does not jump backwards because a system clock was adjusted.

Timing a reaction test

A simple implementation records a timestamp when the game enters the GO state, then records another when the click event arrives. The difference is displayed as the reaction interval.

measured interval = input-event timestamp − GO-state timestamp

The visual signal is not instantaneous

Changing a CSS class or DOM element tells the browser what should change. The browser still has to render a frame and the display has to present it. That means the human may see the signal slightly after the JavaScript timestamp was taken.

Input events also travel through a stack

A physical mouse switch or touchscreen sensor is processed by hardware, drivers, the operating system and the browser before JavaScript receives an event. The game therefore measures an end-to-end interaction, not only neural reaction.

Why this is still useful

Noise does not make the test meaningless. If the same browser, device and setup are used repeatedly, the system latency is relatively stable enough for rough personal comparisons. The mistake is pretending the number is laboratory-grade or perfectly portable across devices.

What we do at EgoTools

Try it yourself

Use the explanation above, then run the tool and compare your own repeated results.

See the timing in action →
ET
EgoTools Editorial

We build small interactive tools, then explain exactly what they calculate or measure, what assumptions are involved and where the result should not be overinterpreted. Read our editorial & methodology policy.