Skip to main content

getEndTime

UnitAlgebra getEndTime() const;

Availability: Component, SubComponent, ComponentExtension

Returns the time that simulation ended with units. This function is for use in the complete() and finish() phases of simulation.

Parameters

  • returns (UnitAlgebra) Time that simulation ended with units

Example

output.output("The simulation ended after %s.\n", getEndTime().toStringBestSI().c_str());
#include <sst/core/component.h> // or
#include <sst/core/subcomponent.h> // or
#include <sst/core/componentExtension.h>