Skip to content
Preview
Thinking 0s
Read src/math.ts 120 lines
Running Math tests 0s

Elapsed

since
number
When the step began, in epoch ms: the readout counts from here once a second.
until
number
When it ended: the time stops here, in the same frame its line settles. Omit while it runs.
ms
number
A time the caller measured on its own clock (paused spans left out): shown as given, never ticking.
format
(ms: number) => string
Writes the time. Default fmtMs: "4s", "1m 12s".
rootStyle
RootStyle
A component's typed override prop: Layout and its documented knobs, each the references it takes or another kit knob of its kind; anything else is a type error at the call site (STYLEX.md).

Rest props go to HTMLAttributes<HTMLSpanElement>.

State machine

PreviewThe current step shimmers beside its elapsed time.
Running Project tests 12s