Use this instruction to mark the end of a series of steps to be executed within a specified timer interval. The BeginTimer system function indicates the beginning of the steps. Upon execution, EndTimer terminates the named timer if the timer is not already expired.
If the last step in the series happens to be the last step on the map, the EndTimer function is not strictly required. All timers for a work item are ended when the work item terminates. Also, as an alternative to the EndTimer system function, you can use the EndAllTimers system function to end all timers in effect for the work item.
To specify the EndTimer system function: