Skip to content

Clock

Defined in: core/clock.ts:8

Time source for a table (ADR 0006). The runtime reads now() once per entry and arms real timers through setTimer. Tests use FakeClock from shoehive/testing.

clearTimer(handle): void

Defined in: core/clock.ts:13

TimerHandle

void


now(): number

Defined in: core/clock.ts:10

Current time, epoch milliseconds.

number


setTimer(atMs, fn): TimerHandle

Defined in: core/clock.ts:12

Calls fn at (or soon after) the absolute time atMs.

number

() => void

TimerHandle