Skip to content

stopTimer

MicroBlaster edited this page Jul 10, 2020 · 2 revisions

Purpose: Stops a performance timer and returns the elapsed miliseconds.

Syntax: stopTimer Var

Var: A variable that was started with startTimer. This var is also used to return the elapsed time in miliseconds.

Notes: Unlike getTimer startTimer/stopTimer will measuer elapsed time in milliseconds. You can start as many timers as you like with differnt var names. They will run untill you call stopTimer.

Example:

StartTimer $Timer
# Do something that you want to time for performance.
StopTimer $Timer

echo "The task took " $Timer " MilliSeconds."

Clone this wiki locally