TimeManager: expose the speed=up factor nicely
This commit is contained in:
parent
bef5e30f6e
commit
58f0b4a16a
2 changed files with 5 additions and 0 deletions
|
@ -464,6 +464,10 @@ void TimeManager::setTimeOffset(const std::string& offset_type, long int offset)
|
||||||
<< _warp->getIntValue() );
|
<< _warp->getIntValue() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
double TimeManager::getSimSpeedUpFactor() const
|
||||||
|
{
|
||||||
|
return _simTimeFactor->getDoubleValue();
|
||||||
|
}
|
||||||
|
|
||||||
// Register the subsystem.
|
// Register the subsystem.
|
||||||
SGSubsystemMgr::Registrant<TimeManager> registrantTimeManager(
|
SGSubsystemMgr::Registrant<TimeManager> registrantTimeManager(
|
||||||
|
|
|
@ -55,6 +55,7 @@ public:
|
||||||
inline double getMPProtocolClockSec() const { return _mpProtocolClock; }
|
inline double getMPProtocolClockSec() const { return _mpProtocolClock; }
|
||||||
inline double getSteadyClockSec() const { return _steadyClock; }
|
inline double getSteadyClockSec() const { return _steadyClock; }
|
||||||
|
|
||||||
|
double getSimSpeedUpFactor() const;
|
||||||
private:
|
private:
|
||||||
/**
|
/**
|
||||||
* Ensure a consistent update-rate using a combination of
|
* Ensure a consistent update-rate using a combination of
|
||||||
|
|
Loading…
Reference in a new issue