Skip to main content

Interface: ClockEvents

Defined in: src/sdk/instruments/Clock.ts:9

Events related to the clock.

Properties

realTime

realTime: number

Defined in: src/sdk/instruments/Clock.ts:14

A Javascript timestamp corresponding to the real-world (operating system) time. The timestamp uses the UNIX epoch (00:00 UTC January 1, 1970) and has units of milliseconds.


realTimeHiFreq

realTimeHiFreq: number

Defined in: src/sdk/instruments/Clock.ts:29

A Javascript timestamp corresponding to the real-world (operating system) time, fired every sim frame instead of on each Coherent animation frame. The timestamp uses the UNIX epoch (00:00 UTC January 1, 1970) and has units of milliseconds.

USE THIS EVENT SPARINGLY, as it will impact performance and ignores the user set glass cockpit refresh setting.


simRate

simRate: number

Defined in: src/sdk/instruments/Clock.ts:40

The simulation rate factor.


simTime

simTime: number

Defined in: src/sdk/instruments/Clock.ts:20

A Javascript timestamp corresponding to the simulation time. The timestamp uses the UNIX epoch (00:00 UTC January 1, 1970) and has units of milliseconds.


simTimeHiFreq

simTimeHiFreq: number

Defined in: src/sdk/instruments/Clock.ts:37

A Javascript timestamp corresponding to the simulation time, fired every sim frame instead of on each Coherent animation frame. The timestamp uses the UNIX epoch (00:00 UTC January 1, 1970) and has units of milliseconds.

USE THIS EVENT SPARINGLY, as it will impact performance and ignores the user set glass cockpit refresh setting.


zulu_sunrise

zulu_sunrise: number

Defined in: src/sdk/instruments/Clock.ts:43

The seconds since midnight (zulu time) until sunrise at the aircraft's location.


zulu_sunset

zulu_sunset: number

Defined in: src/sdk/instruments/Clock.ts:46

The seconds since midnight (zulu time) until sunset at the aircraft's location.