The KillTimer method is used to stop the timer.
The syntax for accessing the method is:

function KillTimer (id : int)

Method arguments:

  1. id is a required argument. It specifies the timer ID. Allowed values are int or string type.

Example. See in the  The SetTimer method section.