How do we measure elapsed time?
Choose the clock that answers an elapsed-time question, including across midnight.
Try the experimentWhat you’ll learn Measure elapsed time with a stopwatch and compute a wall-clock interval with a named end date.
Interval trace
Time the stretch across two dates
Choose the two evening or morning readings and whether the finish is the next date. Compare the result with the short stopwatch below.
7 hours 45 minutes
- Start22:30
- Midnight00:00 · next date
- Finish06:15
The midnight marker appears only when the finish is on the following date. This model assumes 24 clock hours per date.
Saved reading
Calculate an overnight duty interval
- Inputs
- From 23:50 Tuesday to 00:25 Wednesday on an ordinary clock day.
- Reasoning
- Ten minutes bring you to the date boundary; twenty-five more bring you to the end.
- What the result means
- Elapsed wall-clock time is 35 minutes. Do not treat the smaller clock label as a negative interval once the correct date is known.
An interval is anchored to a clock
Start and finish are readings. A monotonic timer is useful for short measurements on one device because a system wall clock can be corrected while the measurement is in progress. A calendar clock instead tells you when something happened and can label an instant for another device.
Carry the date when a label wraps
For an ordinary local night, turn each wall time into minutes since its midnight. From 22:30 to 06:15 the next date, subtract 1,350 from 1,440 + 375. On the same date the finish precedes the start and the form needs correction; it is not automatically overnight.
When a night is not 24 elapsed hours
During a daylight-saving transition a wall clock can skip or repeat an hour. To measure a dated travel or work interval, resolve each local timestamp using the named zone and any required occurrence choice, then subtract the resulting instants. The stopwatch below demonstrates the other kind of problem: timing a single action here and now.
Sources and scope
- NIST · How do you measure a second? — Definition and realization of the second.
- W3C · High Resolution Time — Browser monotonic clocks and wall-clock distinctions.
The lab’s clock calculation does not include named-zone changes. The live stopwatch is a demonstration and its displayed tenths do not imply measurement accuracy.