StopWatch Object

See Also Properties Methods Events Model
World
StopWatch

A programmable timer object.

Using the StopWatch Object

The StopWatch object can be used to measure simulation performance.

Example

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