14 #ifndef SST_CORE_TIMELORD_H
15 #define SST_CORE_TIMELORD_H
17 #include "sst/core/sst_types.h"
18 #include "sst/core/threadsafe.h"
19 #include "sst/core/unitAlgebra.h"
24 extern int main(
int argc,
char** argv);
30 class Simulation_impl;
39 typedef std::map<SimTime_t, TimeConverter*> TimeConverterMap_t;
40 typedef std::map<std::string, TimeConverter*> StringToTCMap_t;
77 SimTime_t
getSimCycles(
const std::string& timeString,
const std::string& where);
85 friend int ::main(
int argc,
char** argv);
87 void init(
const std::string& timeBaseString);
96 TimeLord(TimeLord
const&);
97 void operator=(TimeLord
const&);
100 std::recursive_mutex slock;
103 std::string timeBaseString;
104 TimeConverterMap_t tcMap;
105 UnitAlgebra timeBase;
108 StringToTCMap_t parseCache;
111 TimeConverter* micro;
112 TimeConverter* milli;
Link between two components.
Definition: link.h:38
Main control class for a SST Simulation.
Definition: simulation_impl.h:74
Main control class for a SST Simulation.
Definition: simulation.h:39
A class to convert between a component's view of time and the core's view of time.
Definition: timeConverter.h:27
Class for creating and managing TimeConverter objects.
Definition: timeLord.h:38
TimeConverter * getNano()
Return a TimeConverter which represents Nanoseconds.
Definition: timeLord.h:68
TimeConverter * getMilli()
Return a TimeConverter which represents Milliseconds.
Definition: timeLord.h:72
TimeConverter * getMicro()
Return a TimeConverter which represents Microseconds.
Definition: timeLord.h:70
TimeConverter * getTimeConverter(const std::string &ts)
Create a new TimeConverter object using specified SI Units.
Definition: timeLord.cc:31
SimTime_t getSimCycles(const std::string &timeString, const std::string &where)
Not a Public API.
Definition: timeLord.cc:165
UnitAlgebra getTimeBase() const
Return the Time Base of the TimeLord.
Definition: timeLord.h:65
Performs Unit math in full precision.
Definition: unitAlgebra.h:109