platform/node/system-clock
Classes
Section titled “Classes”SystemClock
Section titled “SystemClock”Defined in: app/src/platform/node/system-clock.ts:6
Clock backed by the host’s monotonic clock and timers.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new SystemClock():
SystemClock
Returns
Section titled “Returns”Methods
Section titled “Methods”now():
number
Defined in: app/src/platform/node/system-clock.ts:7
Milliseconds from a monotonic clock, suitable for measuring durations.
Returns
Section titled “Returns”number
Implementation of
Section titled “Implementation of”setTimeout()
Section titled “setTimeout()”setTimeout(
callback,delayMs):Disposable
Defined in: app/src/platform/node/system-clock.ts:15
Runs a callback once after a delay.
Parameters
Section titled “Parameters”callback
Section titled “callback”() => void
Function to run.
delayMs
Section titled “delayMs”number
Delay in milliseconds.
Returns
Section titled “Returns”A disposable that cancels the timer.
Implementation of
Section titled “Implementation of”wallTime()
Section titled “wallTime()”wallTime():
number
Defined in: app/src/platform/node/system-clock.ts:11
Milliseconds since the Unix epoch, for timestamps.
Returns
Section titled “Returns”number