World StopWatch |
A programmable timer object.
The StopWatch object can be used to measure simulation performance.
The following example uses the StopWatch object to measure the time to complete a simulation.
World.StopWatch.StartIt 'starts the timer
For TimeStep=1 to 1000
Bots.TurnRand -15, 15
Bots.Step
Next TimeStep
Debug.Print "time to finish: ", World.StopWatch.StopIt