Skip to content

BroadcastClockOptions

Defined in: clock.ts:26

Options for createBroadcastClock.

now?: MicrosecondClock;

Defined in: clock.ts:28

The time source, in microseconds. Defaults to performance.now().


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?: 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.