Skip to main content

getDefaultTimeBase

TimeConverter* getDefaultTimeBase();
const TimeConverter* getDefaultTimeBase() const;

Parameters

  • returns A TimeConverter* representing the default time base

Example

// Configure a link connected to a port named 'port' 
SST::Link* link = configureLink("port", new Event::Handler<example>(this, &example::handleEvent));

TimeConverter* tc = link->getDefaultTimeBase();
Output* out = getSimulationOutput();
out->output("The link connected to 'port' has a default time base of %s\n", tc->getPeriod().toStringBestSI().c_str());
#include <sst/core/link.h>