Hacker News new | ask | show | jobs
by mej10 4908 days ago
I think it would be straightforward to write a program that monitors/records whatever applications have focus. I am only familiar with OS X, though. Using the accessibility APIs you can get the focused window and register for focus change notifications.

Of course there is a bit more in parsing the data you gather and creating reports/doing whatever, but the monitoring part should be easy enough.