Page History
Simulation time is a timestamp that is retrieved from a simulation clock. You can use ALH API to get the simulation time of execution.
Code Block | ||
---|---|---|
| ||
public double getCurrentTime() { ... } public double getCurrentTime(String timeUnit) { ... } |
The following code fragment shows how to get the simulation time of execution through ALH API.
Code Block | ||
---|---|---|
| ||
ALH.getCurrentTime();
ALH.getCurrentTime("ms"); |