Get delta time between calls

Hi,

I’m trying to measure the time between calls (in milliseconds) but it seems WASM has no mechanism for this?

How can I measure the time? I’m currently executing inside SimConnect with duration SIMCONNECT_PERIOD_SIM_FRAME, but it appears there is no way through SimConnect to get the time between frames.

There is obviously a 6 Hz timer and an 18 Hz timer, but this doesn’t address the problem.

If you’re writing a gauge you get dt in the PANEL_SERVICE_PRE_DRAW callback. See the “Events Received By The Gauge Callback” section of Creating WASM Gauges.

1 Like

Thank you!!