Class: Clock
Defined in: src/sdk/instruments/Clock.ts:141
A clock which keeps track of real-world and sim time.
Constructors
Constructor
new Clock(
bus
):Clock
Defined in: src/sdk/instruments/Clock.ts:148
Constructor.
Parameters
Parameter | Type | Description |
---|---|---|
bus | EventBus | The event bus to use to publish events from this clock. |
Returns
Clock
Methods
init()
init():
void
Defined in: src/sdk/instruments/Clock.ts:155
Initializes this clock.
Returns
void
onUpdate()
onUpdate():
void
Defined in: src/sdk/instruments/Clock.ts:162
Updates this clock.
Returns
void