Skip to main content

Interface: ClockEvents

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

Events related to the clock.

Properties​

activeSimDuration​

activeSimDuration: number

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

The total amount of simulated time, in milliseconds, that has elapsed since the beginning of the current simulation session. This value does not change when the simulation is paused (e.g. when the in-game menu is open). Note that active pause does not pause the simulation. Simulated time does scale with the simulation rate factor.


activeSimDurationHiFreq​

activeSimDurationHiFreq: number

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

The total amount of simulated time, in milliseconds, that has elapsed since the beginning of the current simulation session, fired every sim frame instead of on each Coherent animation frame. This value does not change when the simulation is paused (e.g. when the in-game menu is open). Note that active pause does not pause the simulation. Simulated time does scale with the simulation rate factor.

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


realTime​

realTime: number

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

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:37

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:58

The simulation rate factor.


simTime​

simTime: number

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

A Javascript timestamp corresponding to the simulation world 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:45

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:61

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:64

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