Old versionsSee all
WindowWatcher is a FREE application that records to a SQLite database which window and application is in front of all others.
The data can be exported in tab-delimited or Property List (PLIST) format. Just start it and leave it!
It is easy to use and also has a friendly interface.