]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/globals.hxx
Major overhaul:
[flightgear.git] / src / Main / globals.hxx
index 67bea6200022342ce39218fe2a973552a870e685..5a02dbd10c6b6485a7b4a78e5f5ed4affc7480e3 100644 (file)
@@ -80,7 +80,7 @@ class FGGlobals
 private:
 
     // Number of milliseconds elapsed since the start of the program.
-    long elapsed_time_ms;
+    double sim_time_sec;
 
     // Root of FlightGear data tree
     string fg_root;
@@ -174,8 +174,9 @@ public:
     FGGlobals();
     ~FGGlobals();
 
-    inline long get_elapsed_time_ms () const { return elapsed_time_ms; }
-    inline void set_elapsed_time_ms (long t) { elapsed_time_ms = t; }
+    inline double get_sim_time_sec () const { return sim_time_sec; }
+    inline void inc_sim_time_sec (double dt) { sim_time_sec += dt; }
+    inline void set_sim_time_sec (double t) { sim_time_sec = t; }
 
     inline const string &get_fg_root () const { return fg_root; }
     inline void set_fg_root (const string &root) { fg_root = root; }