Skip to main content

getCurrentSimCycle

SimTime_t getCurrentSimCycle() const;

Availability: Component, SubComponent, ComponentExtension

Returns the current simulation time as a cycle count. See getCoreTimeBase for cycle time.

Parameters

  • returns (SimTime_t) Current simulation time in core cycles

Example

output.output("The simulation has been running for %" PRIu64 " cycles.\n", getCurrentSimCycle());
#include <sst/core/component.h> // or
#include <sst/core/subcomponent.h> // or
#include <sst/core/componentExtension.h>