Class: Clock
A clock which keeps track of real-world and sim time.
Constructors
constructor
• new Clock(bus
): Clock
Constructor.
Parameters
Name | Type | Description |
---|---|---|
bus | EventBus | The event bus to use to publish events from this clock. |
Returns
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