Our users are running our apps (educational games) in a browser via a Virtual Machine. We had to move to this solution because (1) in some cases users do not want go through the "trouble" of installing an app on their PCs or Macs (which are often "locked" by their companies anyway). and (2) because we still consider it too difficult/time-consuming to re-develop a LiveCode version which can be published as a standalone running in browser, or simply move directly to a re-implementation to HTML5 (we like LiveCode).
But this means that we need to start caring about connection time (= cost towards our VM/virtualization provider). To address this I was thinking of adding to all our games a simple mechanism which basically:
> Checks users input, and if there is no action (no mouseClick) for 10 minutes it closes the app automatically.
This is not one of the cases where I have difficulties imagining how to do this in LiveCode. Rather the contrary. For instance I could record in some global variable the time of last mouseClick and then then have an idle which fires very 5 minutes and checks if the difference is larger than 10 min, or so. But I wondered if there are ways of doing it avoiding to use idle/wait-based approaches - eg by accessing some more "internal/deeper" parameter like LastTimeMouseClickedWithinApp (which is very likely not to exist

Wondering if you have some hints.
-albert