It is possible to re-set a timer that has already started to run. Resetting a
timer results in the timer recalculating its expiry time so the expiry time
becomes relative to when the timer was reset, and not when the timer was
originally started. This behaviour is demonstrated in the next diagram, where
Timer 1 is a one-shot timer that has a period equal to 5 seconds.
In the depicted example, it is assumed that the application switches on an LCD
back-light when a key is pressed, and that the back-light remains on until 5
seconds pass without any keys being pressed. Timer 1 is used to switch off the
LCD back-light when this 5 seconds has elapsed.
Timer behaviour when a timer is reset
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.