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.
Methods
Section titled “Methods”clearTimer()
Section titled “clearTimer()”clearTimer(
handle):void
Defined in: core/clock.ts:13
Parameters
Section titled “Parameters”handle
Section titled “handle”Returns
Section titled “Returns”void
now():
number
Defined in: core/clock.ts:10
Current time, epoch milliseconds.
Returns
Section titled “Returns”number
setTimer()
Section titled “setTimer()”setTimer(
atMs,fn):TimerHandle
Defined in: core/clock.ts:12
Calls fn at (or soon after) the absolute time atMs.
Parameters
Section titled “Parameters”number
() => void
