ow I can automatically stop the timer on this window after a period of no operation?

Often when I leave my desk, the computer is still showing a certain window, and AW is still recording the time, and I wonder how I can automatically stop the timer on this window after a period of no operation.