Skip to content

TimingSnapshot

Defined in: console-sdk/src/session/types.ts:461

The timing spine of a session (SDK_PLAN.md §3.6.6): start/end and the pause spans, with elapsedSeconds derived at read time (row 34) so it is always fresh without a ticking field.

elapsedSeconds: number

Defined in: console-sdk/src/session/types.ts:475

Working seconds excluding pauses, computed when this snapshot was built (on a phase transition — arm/pause/resume/rest/finalize), so it does not advance between transitions. For a smooth display clock, derive elapsed app-side from TimingSnapshot.startedAt (minus these pause spans) on your own interval — the SDK runs no per-second timer.


endedAt: number | null

Defined in: console-sdk/src/session/types.ts:465

Epoch ms the session ended, or null while running.


pauses: readonly object[]

Defined in: console-sdk/src/session/types.ts:467

Pause spans; an open pause has to: null.


startedAt: number

Defined in: console-sdk/src/session/types.ts:463

Epoch ms the session started.