I have a windows application, where when the user logs in main menu screen opens and a timer starts running. The duration for the timer is configurable. Timer runs every 1 minute. When the user selects a menu option a screen opens and the timer gets reset. In the screen when the user clicks on any button then also the timer gets reset. The issue is when user clicks on the button then there is a delay in reset. For eg: If the timer duration is 5 mins and user clicks on a button on 4: 30 seconds then it would take 30 seconds more before resetting the timer.