I want to create an app that tracks usage on a computer. When nothing has been done for say 10 minutes (mouse moves, kyboard inputs, etc) then the "inactivity period" has begun and wil end when computer is utilized again. Should also log actual power on and power off time.

Any ideas on how to approach this problem would be greatly apreciated.