getElapsedSimTime
UnitAlgebra getElapsedSimTime() const;
Availability: Component, SubComponent, ComponentExtension
Returns the current simulation time as a time with units.
Parameters
- returns (UnitAlgebra) Current simulation time
Example
output.output("The simulation has been running for %s.\n", getElapsedSimTime().toStringBestSI().c_str());
Header
#include <sst/core/component.h> // or
#include <sst/core/subcomponent.h> // or
#include <sst/core/componentExtension.h>