NEW RELEASE! The 2022x Refresh2 Hot Fix 3 was released on February 28, 2025. For more information, see 2022x Refresh2 Hot Fix 3 Version News.

Simulation time is a timestamp that is retrieved from a simulation clock. You can use ALH API to get the simulation time of execution.

double getCurrentTime()
double getCurrentTime(String timeUnit)


The following code fragment shows how to get the simulation time of execution through ALH API.

ALH.getCurrentTime();
ALH.getCurrentTime("ms");

Activity

All
Personal filters
All