5.13.2 Step counters
Each instance that supports stepping maintains the following counters:
- A global step counter. This counts the steps in an
increasing and wrapping 64-bit counter.
- A global remaining steps counter. This counts down the remaining steps during stepping. If it transitions from one to zero, the simulation is stopped. If it is zero, no stepping is performed. The remaining steps counter of an instance is shared by all clients. Therefore, only one connected client can step an instance.
When the simulation time stops, for any reason, the remaining steps counter of all instances is automatically set to zero to disable stepping. For example, this might happen when:
- A breakpoint is hit.
- A stepping operation of another instance has completed.
simulationTime_stop() was called.