Displays a standardized elapsed duration for active work without scheduling a React render on every tick. Elapsed format updates by second below one hour and by minute after one hour; clock format remains second-precise.
Displays a standardized elapsed duration for active work without scheduling a React render on every tick. Elapsed format updates by second below one hour and by minute after one hour; clock format remains second-precise.
Use elapsed for compact duration text that may span seconds, minutes, or hours.
Use clock for stopwatch-like surfaces where seconds remain meaningful after an hour.
Pass startTime when the operation began before Timer mounted so the display reflects the complete wait.
Do not use Timer for dates, time zones, or relative calendar language; use Timestamp instead.
Do not add aria-live unless hearing an announcement every tick is appropriate for the specific task.
Typed props
Prop
Type and behavior
startTime
number
Unix time in milliseconds when the measured operation began. Omit it to start from this Timer's mount.
format
'elapsed' | 'clock' · default 'elapsed'
Standard duration representation. Elapsed uses compact units and drops seconds after one hour; clock uses m:ss or h:mm:ss.