Skip to main content

getEndSimTime

UnitAlgebra getEndSimTime() const;

Returns the time that simulation ended, as a time with units. The time will be incorrect unless simulation is ending. To get the end time as a cycle count, use getEndSimCycle().

Parameters​

  • returns (UnitAlgebra) The time that simulation ended

Example​

UnitAlgebra time = getEndSimTime();
getSimulationOutput().output("Simulation ended at %s\n", time.toStringBestSI().c_str());
#include <sst/core/realtimeAction.h>