[xplane] Added display of simulation time ratio in simulator component

This commit is contained in:
Mat Sutcliffe
2020-01-12 17:34:48 +00:00
parent c88b05a734
commit 35cfaebc7d
9 changed files with 79 additions and 19 deletions

View File

@@ -112,8 +112,9 @@ namespace XSwiftBus
//! Frames-per-second, averaged over the last 500 frames,
//! or since this function was last called, whichever is later.
//! Second part is the average simulation time ratio during the same period.
//! \return Zero if no samples were collected since this function was last called.
double getAverageFPS();
std::pair<double, double> getFrameStats();
//! Get aircraft latitude in degrees
double getLatitudeDeg() const { return m_latitude.get(); }