Possible Duplicate:
C#: Detecting which application has focus
I want to track focused time of each application running in windows. I tried C#: Detecting which application has focus solution but it allows to get what application is focused but i dont want to have timer and check in intervals to get total focused time. i want a focus listener to be more efficient.