Skip to content

platform/node/system-clock

Defined in: app/src/platform/node/system-clock.ts:6

Clock backed by the host’s monotonic clock and timers.

new SystemClock(): SystemClock

SystemClock

now(): number

Defined in: app/src/platform/node/system-clock.ts:7

Milliseconds from a monotonic clock, suitable for measuring durations.

number

Clock.now

setTimeout(callback, delayMs): Disposable

Defined in: app/src/platform/node/system-clock.ts:15

Runs a callback once after a delay.

() => void

Function to run.

number

Delay in milliseconds.

Disposable

A disposable that cancels the timer.

Clock.setTimeout

wallTime(): number

Defined in: app/src/platform/node/system-clock.ts:11

Milliseconds since the Unix epoch, for timestamps.

number

Clock.wallTime