X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FTime%2FTimeManager.hxx;h=ef86c907f94fc9761fdb8bb240ea85c692845016;hb=da73dd97d3d0e36b6078728ac39f0b98cae46ff7;hp=59aa036167dd81bfb2eb6fe0e9d8e97e78ef8e0a;hpb=12f694f06d9f2ffabb66959bb3f055074cee9473;p=flightgear.git diff --git a/src/Time/TimeManager.hxx b/src/Time/TimeManager.hxx index 59aa03616..ef86c907f 100644 --- a/src/Time/TimeManager.hxx +++ b/src/Time/TimeManager.hxx @@ -23,6 +23,7 @@ #include #include +#include // forward decls class SGTime; @@ -43,6 +44,8 @@ public: // SGPropertyChangeListener overrides virtual void valueChanged(SGPropertyNode *); + + void setTimeOffset(const std::string& offset_type, long int offset); private: /** @@ -78,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