WorkCounter
WorkCounter counts the time spent for working
... of applications active in the foreground. Every 5min there is a check which is the foreground window. Weekly or monthly stats are available (including foreground application stats).
Activity counting may exclude defined applications or could be enabled only when certain applications are active in the foreground.
External programs could be defined to be started when time limits are reached for tracked applications.
Important: false positive detection by antyvirus software - not able to fix it