Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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
languagetext
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
languagetext
ALH.getCurrentTime();
ALH.getCurrentTime("ms");