Skip to main content

Interface: ClockEvents

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

Events related to the clock.

Properties

activeSimDuration

activeSimDuration: number

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

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

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

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

The simulation rate factor.


simTime

simTime: number

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

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

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

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

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