Heretic
Resource contributor
- Messages
- 6,830
- Country

It's actually simple. You capture the current absolute time in a custom L: var when starting the timer. The difference between absolute time and your captured time is the elapsed time.
"Flight time" might be time between engine start and engine shutdown, so trigger the time capture when on the ground and engine combustion is 1 and reset the captured time when on ground, the engine is off and the captured time is not 0.
"Elapsed time" needs to be implemented into the mouse rectangle. I do not know how the Davtron works, but I assume it's controlled with a start-stop-reset button.
Start: Capture time.
In the background: If captured time is greater than 0 and the "stop" variable is 0, evaluate difference between current and captured time.
Stop: Set "stop variable" to anything but 0.
Reset: Set captured time to 0. Set stop variable to 0.
"Flight time" might be time between engine start and engine shutdown, so trigger the time capture when on the ground and engine combustion is 1 and reset the captured time when on ground, the engine is off and the captured time is not 0.
"Elapsed time" needs to be implemented into the mouse rectangle. I do not know how the Davtron works, but I assume it's controlled with a start-stop-reset button.
Start: Capture time.
In the background: If captured time is greater than 0 and the "stop" variable is 0, evaluate difference between current and captured time.
Stop: Set "stop variable" to anything but 0.
Reset: Set captured time to 0. Set stop variable to 0.








):