12 #ifdef DtUSE_UTILITIES_NAMESPACE
13 namespace DtUSE_UTILITIES_NAMESPACE
47 virtual DtTime simTime()
const;
52 virtual void setSimTime(
DtTime NewSimTime);
56 virtual bool isSimTimeSet()
const;
59 virtual DtTime elapsedRealTime()
const;
63 virtual DtTime approximateElapsedRealTime()
const;
66 virtual bool useSimTimeForApproxRealTime()
const;
70 virtual void setUseSimTimeForApproxRealTime();
71 virtual void clearUseSimTimeForApproxRealTime();
74 virtual DtTime absRealTime()
const;
109 double myCounterAtInitialTime;
110 double myCounterFreq;
121 #define DtHour2Sec DtClock::hour2sec
122 #define DtSec2Hour DtClock::sec2hour
137 #ifdef DtUSE_UTILITIES_NAMESPACE
bool myUsePerfCounter
Definition: vlTime.h:106
bool myUseSimTimeForApproxRealTime
Flag to change meaning of approximate real time.
Definition: vlTime.h:104
DtTime myInitialTime
Save starting time to subtract from current to get elapsed.
Definition: vlTime.h:91
void DtSetSimTime(DtTime NewSimTime)
Used to set and maintain time in a simulation.
Definition: vlTime.h:25
static const double hour2sec
Clock constants used for time conversions.
Definition: vlTime.h:85
DtTime DtAbsRealTime()
DtAbsRealTime() may not be as accurate as creating a persistent instance of a DtClock and getting the...
DtTime DtGetElapsedRealTime()
void setUsePerfCounter(bool val)
In windows this enables the high performance counter which allows for better than millisecond counts ...
Definition: vlTime.h:79
bool mySimTimeSet
Definition: vlTime.h:101
DtFloat64 DtReal
A 64 bit floating point value. This is the same as DtFloat64 bit is created for convenience.
Definition: vlMachineTypes.h:215
bool myInitializedTime
Definition: vlTime.h:107
DtTime mySimTime
This is the internal vr-link simulation clock.
Definition: vlTime.h:94
DtTime DtGetApproximateElapsedRealTime()
DtTime myApproxElapsedRealTime
This is the Elapsed Real Time at the point that SetSimTime() is called.
Definition: vlTime.h:99
DtReal DtTime
A definition of DtTime.
Definition: vlTime.h:19
static const double sec2hour
Definition: vlTime.h:86
This file contains typedefs for machine dependant types.
#define DT_DLL_VLUTIL
Definition: vlMachineTypes.h:109
bool usePerfCounter() const
Definition: vlTime.h:80