|
SST 16.0.0
Structural Simulation Toolkit
|
Class for creating and managing TimeConverter objects. More...
#include <timeLord.h>
Public Member Functions | |
| TimeConverter | getTimeConverter (const std::string &ts) |
| Create a new TimeConverter object using specified SI Units. | |
| TimeConverter | getTimeConverter (const UnitAlgebra &ts) |
| Create a new TimeConverter object using the specified units. | |
| UnitAlgebra | getTimeBase () const |
| Get the global TimeBase as a UnitAlgebra. | |
| TimeConverter | getNano () |
| Get the TimeConverter representing a nanosecond. | |
| TimeConverter | getMicro () |
| Get the TimeConverter representing a microsecond. | |
| TimeConverter | getMilli () |
| Get the TimeConverter representing a millisecond. | |
| SimTime_t | getSimCycles (const std::string &timeString, const std::string &where) |
| Not a Public API. | |
Friends | |
| class | SST::Simulation |
| class | SST::Link |
| class | SST::BaseComponent |
| class | SST::TimeConverter |
| friend | int::main (int argc, char **argv) |
Class for creating and managing TimeConverter objects.
|
inline |
Get the TimeConverter representing a microsecond.
|
inline |
Get the TimeConverter representing a millisecond.
|
inline |
Get the TimeConverter representing a nanosecond.
| SimTime_t SST::TimeLord::getSimCycles | ( | const std::string & | timeString, |
| const std::string & | where ) |
Not a Public API.
Returns the number of raw simulation cycles given by a specified time string
References SST::TimeConverter::getFactor(), and getTimeConverter().
Referenced by SST::Link::addRecvLatency(), and SST::Link::addSendLatency().
|
inline |
Get the global TimeBase as a UnitAlgebra.
Referenced by SST::Core::Serialization::ObjectMapFundamental< TimeConverter >::get(), SST::InteractiveConsole::getCoreTimeBase(), SST::RealTimeAction::getCoreTimeBase(), SST::TimeConverter::getPeriod(), and SST::ConfigLink::latency_str().
| TimeConverter SST::TimeLord::getTimeConverter | ( | const std::string & | ts | ) |
Create a new TimeConverter object using specified SI Units.
For example, "1 GHz" (1 Gigahertz), "2.5 ns" (2.5 nanoseconds).
| ts | String indicating the base unit for this object. The string should be a floating point number followed by a prefix, and then frequency (i.e. Hz) or time unit (s). Allowable seconds prefixes are: 'f' (femto), 'p' (pico), 'n' (nano), 'u' (micro), 'm' (milli). Allowable frequency prefixes are 'k' (kilo), 'M' (mega), and 'G' (giga). |
References getTimeConverter().
Referenced by SST::Link::getDefaultTimeBase(), getSimCycles(), SST::InteractiveConsole::getTimeConverter(), getTimeConverter(), getTimeConverter(), and SST::Statistics::StatisticProcessingEngine::registerStatisticWithEngine().
| TimeConverter SST::TimeLord::getTimeConverter | ( | const UnitAlgebra & | ts | ) |
Create a new TimeConverter object using the specified units.
| ts | UnitAlgebra object indicating the base unit for this object. |
References SST::Output::fatal(), and getTimeConverter().