-
Notifications
You must be signed in to change notification settings - Fork 8
startTimer
MicroBlaster edited this page Jul 10, 2020
·
1 revision
Purpose: Starts a performance timer.
Syntax: startTimer Var
Var: A variable that will be used with stopTimer.
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."
.