mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 04:45:31 +08:00
[xplane] Added display of simulation time ratio in simulator component
This commit is contained in:
@@ -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(); }
|
||||
|
||||
Reference in New Issue
Block a user