BroadcastClockOptions
Defined in: clock.ts:26
Options for createBroadcastClock.
Properties
Section titled “Properties”now?: MicrosecondClock;Defined in: clock.ts:28
The time source, in microseconds. Defaults to performance.now().
originEpochUs?
Section titled “originEpochUs?”originEpochUs?: number;Defined in: clock.ts:39
The origin as integer Unix-epoch microseconds. Defaults to Date.now() at creation less the
source time elapsed since the origin, read once. Date.now() rather than performance.timeOrigin + performance.now(), which can fall behind the system clock by however long the page has slept.
originUs?
Section titled “originUs?”originUs?: number;Defined in: clock.ts:33
The moment on the source clock that is pinned to the system clock, in integer microseconds. Defaults to the source’s time now, rounded to whole microseconds.