]> git.mxchange.org Git - simgear.git/commitdiff
Make use of SGTimeStamp::sleep*.
authorMathias Froehlich <Mathias.Froehlich@web.de>
Fri, 28 Oct 2011 14:58:29 +0000 (16:58 +0200)
committerMathias Froehlich <Mathias.Froehlich@web.de>
Fri, 28 Oct 2011 16:45:23 +0000 (18:45 +0200)
simgear/io/httpget.cxx
simgear/io/test_HTTP.cxx

index e10a29b41659dd3fc992b77358296ca5d40ce65b..b4934b8dc04de21ae5004dc6271d256c62849f04 100644 (file)
@@ -12,7 +12,7 @@
 #include <simgear/io/HTTPRequest.hxx>
 #include <simgear/io/sg_netChannel.hxx>
 #include <simgear/misc/strutils.hxx>
-#include <simgear/misc/sg_sleep.hxx>
+#include <simgear/timing/timestamp.hxx>
 
 using namespace simgear;
 using std::cout;
@@ -156,7 +156,7 @@ int main(int argc, char* argv[])
     
     while (!req->complete()) {
         cl.update();
-        sleepForMSec(100);
+        SGTimeStamp::sleepForMSec(100);
     }
         
     if (req->responseCode() != 200) {
index 048cbb41909186e66e00a5c5c1bfcf19f1e89be9..988f8bbaa03e6392d043f83df3ac548aa379b1c4 100644 (file)
@@ -12,7 +12,6 @@
 #include <simgear/io/sg_netChat.hxx>
 #include <simgear/misc/strutils.hxx>
 #include <simgear/timing/timestamp.hxx>
-#include <simgear/misc/sg_sleep.hxx>
 
 using std::cout;
 using std::cerr;
@@ -321,7 +320,7 @@ void waitForComplete(HTTP::Client* cl, TestRequest* tr)
         if (tr->complete) {
             return;
         }
-        sleepForMSec(1);
+        SGTimeStamp::sleepForMSec(1);
     }
     
     cerr << "timed out" << endl;
@@ -335,7 +334,7 @@ void waitForFailed(HTTP::Client* cl, TestRequest* tr)
         if (tr->failed) {
             return;
         }
-        sleepForMSec(1);
+        SGTimeStamp::sleepForMSec(1);
     }
     
     cerr << "timed out waiting for failure" << endl;