X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FTime%2FTimeManager.hxx;h=ef86c907f94fc9761fdb8bb240ea85c692845016;hb=da73dd97d3d0e36b6078728ac39f0b98cae46ff7;hp=d0dff8155ba97c8de084f3f1623dff75a7100bf9;hpb=e0aef846e30d9cda73c4e0e10fb13e2b845db5d7;p=flightgear.git diff --git a/src/Time/TimeManager.hxx b/src/Time/TimeManager.hxx index d0dff8155..ef86c907f 100644 --- a/src/Time/TimeManager.hxx +++ b/src/Time/TimeManager.hxx @@ -22,6 +22,8 @@ #define FG_TIME_TIMEMANAGER_HXX #include +#include +#include // forward decls class SGTime; @@ -42,6 +44,8 @@ public: // SGPropertyChangeListener overrides virtual void valueChanged(SGPropertyNode *); + + void setTimeOffset(const std::string& offset_type, long int offset); private: /** @@ -77,10 +81,18 @@ private: SGPropertyNode_ptr _longitudeDeg; SGPropertyNode_ptr _latitudeDeg; -// frame-rate / update-rate counters + // frame-rate / worst-case latency / update-rate counters SGPropertyNode_ptr _frameRate; + SGPropertyNode_ptr _frameRateWorst; + SGPropertyNode_ptr _frameLatency; time_t _lastFrameTime; + double _frameLatencyMax; int _frameCount; + + SGPropObjBool _sceneryLoaded, + _sceneryLoadOverride; + SGPropObjInt _modelHz; + SGPropObjDouble _timeDelta, _simTimeDelta; }; #endif // of FG_TIME_TIMEMANAGER_HXX