# What does the clock measure?

> Distinguish one response from a scored loop and an entire session.

[Canonical HTML page](https://trustcyber.ca/research/allow-hold-deny/lessons/08-response-time/)

- Author: Junior Williams
- Type: Research companion addition

## Learning objective

Distinguish one response from a scored loop and an entire session.

- [Original paper: §III.C; companion mathematics D.11 · page 2](https://trustcyber.ca/research/allow-hold-deny/original.pdf#page=2)
Source pages: 2
## Choose a timing boundary

The primary clock starts at HTTP transfer start and stops when the complete response body is received. HTTP is the request-and-response protocol used to contact a service. The interval includes transport, service waiting and required generation. Payload preparation, parsing, validation, saving and startup sit outside it.

## Read a group of times

For sorted times 100, 200 and 300 milliseconds, the **median** is 200: the middle observation. A **p95** is the 95th percentile, a value near the slower end. With the paper's linear interpolation convention, this toy p95 is 290 milliseconds. A millisecond is one thousandth of a second.

The headline median and p95 use fully compliant responses. Summing response intervals gives a different quantity from the elapsed scored loop, which includes other work between requests. The whole session includes still more work such as practice or startup. Never substitute one scope for another.

Use the schematic to move the boundary. Its segments represent kinds of work rather than measured durations.

<details><summary>Go deeper: interpolated percentiles</summary><p>For n sorted observations, position h = (n−1)q. Interpolate between the values at floor(h) and ceil(h). For q = 0.95 and three toy times, h = 1.9, so 200 + 0.9(300−200) = 290. The study used a monotonic clock, which measures elapsed intervals without wall-clock corrections.</p></details>

## Interactive activities

Use the canonical HTML page for controls, live results and reset buttons.
- [clock](https://trustcyber.ca/research/allow-hold-deny/lessons/08-response-time/#demo-clock): Select a timing boundary. The highlighted span shows which work is included. This schematic has no measured scale.

## Check your understanding (optional)

Does a primary HTTP interval include saving the scored result to disk?
- No: Correct. The interval ends at complete response-body receipt; saving is later.
- Yes, every session activity: That describes a broader session boundary.
- Only for local models: The defined measurement boundary applies to all four arms.

## Take this forward

Next, examine the probabilities that accompany a decision.

## Reference material

- [results](https://trustcyber.ca/research/allow-hold-deny/results/index.md)
- [mathematics](https://trustcyber.ca/research/allow-hold-deny/mathematics/index.md)

## Lesson navigation

- [Previous: Accuracy and uncertainty](https://trustcyber.ca/research/allow-hold-deny/lessons/07-accuracy-and-uncertainty/index.md)
- [Next: Understand reported certainty](https://trustcyber.ca/research/allow-hold-deny/lessons/09-probability-quality/index.md)

## Companion navigation

- [Overview](https://trustcyber.ca/research/allow-hold-deny/index.md)
- [Both authorization studies](https://trustcyber.ca/research/authorization/index.md)
