]> git.mxchange.org Git - flightgear.git/blobdiff - src/Time/fg_timer.cxx
Latest YASim changes.
[flightgear.git] / src / Time / fg_timer.cxx
index 91fa01551db02e32d56ac11d13ab1b6578392ab6..b98184070937277495d335848909518de5fbd274 100644 (file)
@@ -36,9 +36,9 @@
 #  include <sys/time.h>  // for get/setitimer, gettimeofday, struct timeval
 #endif
 
-#include "fg_time.hxx"
+#include <simgear/timing/timestamp.hxx>
+
 #include "fg_timer.hxx"
-#include "timestamp.hxx"
 
 
 unsigned long int fgSimTime;
@@ -100,9 +100,10 @@ void fgTimerInit(float dt, void (*f)( int )) {
 int fgGetTimeInterval( void ) {
     int interval;
     static int inited = 0;
-    static FGTimeStamp last;
-    FGTimeStamp current;
+    static SGTimeStamp last;
+    SGTimeStamp current;
 
+    
     if ( ! inited ) {
        inited = 1;
        last.stamp();
@@ -113,7 +114,7 @@ int fgGetTimeInterval( void ) {
        last = current;
     }
 
-    return(interval);
+    return interval;
 }