I think startRealTime function is what you are looking for.Is there a way to get the nut script to know when the player goes out on track (hits the little triangle button in bottom right corner)? Alternatively is it possible to make a function execute every time they press escape to go back to pits?
You have the startSession function so hoping we can have a startDriving and maybe finishDriving function (for completeness).
I need it to reset an average fuel usage calculation. I have tried a lot ways using the various data coming from the game to detect it but it is being difficult.