Skip to main content

getCurrentSimTimeNano

SimTime_t getCurrentSimTimeNano() const;

Availability: Component, SubComponent, ComponentExtension

Returns the current simulation time as a time in nanoseconds.

Parameters

  • returns (SimTime_t) Current simulation time in nanoseconds

Example

output.output("The simulated time is %" PRIu64 " ns\n", getCurrentSimTimeNano());
#include <sst/core/component.h> // or
#include <sst/core/subcomponent.h> // or
#include <sst/core/componentExtension.h>