]> git.mxchange.org Git - flightgear.git/commitdiff
Make use of SGTimeStamp for sleep*
authorMathias Froehlich <Mathias.Froehlich@web.de>
Fri, 28 Oct 2011 15:01:50 +0000 (17:01 +0200)
committerMathias Froehlich <Mathias.Froehlich@web.de>
Fri, 28 Oct 2011 15:01:50 +0000 (17:01 +0200)
src/Main/main.cxx
src/Main/metar_main.cxx

index 75b0c448139e4235e58ed4876a27d5c421207fd5..aed183c372c10cf4c0c679bb6c2fb132483a7b4e 100644 (file)
 #include <simgear/props/AtomicChangeListener.hxx>
 #include <simgear/props/props.hxx>
 #include <simgear/timing/sg_time.hxx>
+#include <simgear/timing/timestamp.hxx>
 #include <simgear/magvar/magvar.hxx>
 #include <simgear/math/sg_random.h>
 #include <simgear/io/raw_socket.hxx>
 #include <simgear/scene/tsync/terrasync.hxx>
-#include <simgear/misc/sg_sleep.hxx>
 
 #include <Time/light.hxx>
 #include <Aircraft/replay.hxx>
@@ -214,7 +214,7 @@ static void fgMainLoop( void ) {
         {
             fgSplashProgress("loading scenery");
             // be nice to loader threads while waiting for initial scenery, reduce to 2fps
-            simgear::sleepForMSec(500);
+            SGTimeStamp::sleepForMSec(500);
         }
     }
 
index bf7430d127194b5223563ffcd7c7614226506300..7b904d3a245f492f97246ca1a2613c766926557e 100644 (file)
@@ -34,7 +34,6 @@
 #include <simgear/io/HTTPClient.hxx>
 #include <simgear/io/HTTPRequest.hxx>
 #include <simgear/timing/timestamp.hxx>
-#include <simgear/misc/sg_sleep.hxx>
 
 using namespace std;
 using namespace simgear;
@@ -586,7 +585,7 @@ int main(int argc, char *argv[])
                     if (mr->complete || mr->failed) {
                         break;
                     }
-                    sleepForMSec(1);
+                    SGTimeStamp::sleepForMSec(1);
                 }
                 
                 if (!mr->complete) {