phaolo: I'm just randomly brainstorming, but something like:
- Galaxy is running and this option is enabled.
- game X is running, check if its windows has focus. If not, pause the counter.
- game X is focused and has its menu key set to A: monitor that key.
I hate to the Negative Nelly all the time, but except for the focus checking it's just not practical.
And even the focus checking might be a bit iffy.
Say you're playing a modern game like W3, in these games the 'menu' is where nearly everything is done in different tabs such as inventory management, crafting and reading in-game books and messages.
And often the map as well, which would mean you wouldn't be tracking any of that time because you pressed the menu key.
And if the menu key is Escape and I jam it 5 times to skip different cutscenes?
Now no time is being logged at all.
Focus checking would probably work, although it might be possible to have a full screen window on your secondary monitor that is not in focus, but the game is still playable with the controller. Not exactly a situation that pops up a lot and I don't know if it's even possible, but I'm just pointing out theoretical situations wherein such a solution would fail.