Skip to main content

Interface: ClockEvents

Events related to the clock.

Properties

realTime

realTime: number

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.

Defined in

src/sdk/instruments/Clock.ts:14


simRate

simRate: number

The simulation rate factor.

Defined in

src/sdk/instruments/Clock.ts:31


simTime

simTime: number

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.

Defined in

src/sdk/instruments/Clock.ts:20


simTimeHiFreq

simTimeHiFreq: number

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.

Defined in

src/sdk/instruments/Clock.ts:28


zulu_sunrise

zulu_sunrise: number

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

Defined in

src/sdk/instruments/Clock.ts:34


zulu_sunset

zulu_sunset: number

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

Defined in

src/sdk/instruments/Clock.ts:37