Skip to main content

Class: Clock

A clock which keeps track of real-world and sim time.

Constructors

constructor

new Clock(bus): Clock

Constructor.

Parameters

NameTypeDescription
busEventBusThe event bus to use to publish events from this clock.

Returns

Clock

Defined in

src/sdk/instruments/Clock.ts:131

Methods

init

init(): void

Initializes this clock.

Returns

void

Defined in

src/sdk/instruments/Clock.ts:138


onUpdate

onUpdate(): void

Updates this clock.

Returns

void

Defined in

src/sdk/instruments/Clock.ts:145