14 #ifdef DtUSE_UTILITIES_NAMESPACE
15 namespace DtUSE_UTILITIES_NAMESPACE
55 virtual DtTime simTime()
const;
61 virtual void setSimTime(
DtTime NewSimTime);
65 virtual bool isSimTimeSet()
const;
68 virtual DtTime elapsedRealTime()
const;
72 virtual DtTime approximateElapsedRealTime()
const;
75 virtual bool useSimTimeForApproxRealTime()
const;
79 virtual void setUseSimTimeForApproxRealTime();
80 virtual void clearUseSimTimeForApproxRealTime();
83 virtual DtTime absRealTime()
const;
96 void setTimeForTimestampsCallback(DtSetTimeForTimestampsCallback callback);
145 #define DtHour2Sec DtClock::hour2sec
146 #define DtSec2Hour DtClock::sec2hour
161 #ifdef DtUSE_UTILITIES_NAMESPACE
std::function< DtTime()> DtSetTimeForTimestampsCallback
Callback prototype invoked during setSimTime() to supply the time value to be used for timestamps (my...
Definition: vlTime.h:35
bool myUseSimTimeForApproxRealTime
Flag to change meaning of approximate real time.
Definition: vlTime.h:124
DtTime myInitialTime
Save starting time to subtract from current to get elapsed.
Definition: vlTime.h:107
void DtSetSimTime(DtTime NewSimTime)
Used to set and maintain time in a simulation.
Definition: vlTime.h:27
DtTime myRealTimeAtSimTime
This is the real time at the point that SetSimTime() is called.
Definition: vlTime.h:119
static const double hour2sec
Clock constants used for time conversions.
Definition: vlTime.h:101
DtTime DtAbsRealTime()
DtAbsRealTime() may not be as accurate as creating a persistent instance of a DtClock and getting the...
DtTime DtGetElapsedRealTime()
std::chrono::steady_clock::time_point myInitialSteadyTime
Monotonic anchor captured at init(), paired with myInitialTime.
Definition: vlTime.h:131
bool mySimTimeSet
Definition: vlTime.h:121
DtSetTimeForTimestampsCallback myRealTimeAtSimTimeSetCallback
Optional callback that supplies the value for myRealTimeAtSimTime during setSimTime().
Definition: vlTime.h:135
virtual DtTime realTimeAtLastSimTimeSet() const
Return the real time at the point that setSimTime was last invoked.
Definition: vlTime.h:86
bool myInitializedTime
True after init() has been called. Guards absRealTime() before init runs.
Definition: vlTime.h:127
DtTime mySimTime
This is the internal vr-link simulation clock.
Definition: vlTime.h:110
virtual DtTime initialTime() const
Return the initial time that was saved at DtTimeInit.
Definition: vlTime.h:89
DtTime DtGetApproximateElapsedRealTime()
DtTime myApproxElapsedRealTime
This is the Elapsed Real Time at the point that SetSimTime() is called.
Definition: vlTime.h:115
DtReal DtTime
A definition of DtTime.
Definition: vlTime.h:21
static const double sec2hour
Definition: vlTime.h:102
This file contains typedefs for machine dependant types.
#define DT_DLL_VLUTIL
Definition: vlMachineTypes.h:121