TimerStop Function

Action

Stops a timer.

Syntax

TimerStop (hTimer)
Variable Description
hTimer A handle to the timer to stop. HTIMER.

Notes

TimerStop stops the specified timer. The timer will record the time that elapsed since you started it with TimerStart, minus the time (if any) that it was paused.

Example

[ ] STRING sOverallTime
[ ] HTIMER TotalTimer
[ ] TotalTimer = TimerCreate ()
[ ] TimerStart (TotalTimer)
[ ] // ...
[ ] TimerStop (TotalTimer)
[ ] sOverallTime = TimerStr (TotalTimer)
[ ] Print ("All code executed in {sOverallTime} seconds")
[ ] TimerDestroy (TotalTimer)