1
0
Fork 0

TimeManager: expose the speed=up factor nicely

This commit is contained in:
James Turner 2020-10-29 12:50:02 +00:00
parent bef5e30f6e
commit 58f0b4a16a
2 changed files with 5 additions and 0 deletions

View file

@ -464,6 +464,10 @@ void TimeManager::setTimeOffset(const std::string& offset_type, long int offset)
<< _warp->getIntValue() );
}
double TimeManager::getSimSpeedUpFactor() const
{
return _simTimeFactor->getDoubleValue();
}
// Register the subsystem.
SGSubsystemMgr::Registrant<TimeManager> registrantTimeManager(

View file

@ -55,6 +55,7 @@ public:
inline double getMPProtocolClockSec() const { return _mpProtocolClock; }
inline double getSteadyClockSec() const { return _steadyClock; }
double getSimSpeedUpFactor() const;
private:
/**
* Ensure a consistent update-rate using a combination of