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.
Properties
Section titled “Properties”elapsedSeconds
Section titled “elapsedSeconds”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
Section titled “endedAt”endedAt:
number|null
Defined in: console-sdk/src/session/types.ts:465
Epoch ms the session ended, or null while running.
pauses
Section titled “pauses”pauses: readonly
object[]
Defined in: console-sdk/src/session/types.ts:467
Pause spans; an open pause has to: null.
startedAt
Section titled “startedAt”startedAt:
number
Defined in: console-sdk/src/session/types.ts:463
Epoch ms the session started.