From: Mathias Froehlich Date: Fri, 28 Oct 2011 14:58:29 +0000 (+0200) Subject: Make use of SGTimeStamp::sleep*. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=92db9682e04dbf727d590640e6ba8850b00b0bba;p=simgear.git Make use of SGTimeStamp::sleep*. --- diff --git a/simgear/io/httpget.cxx b/simgear/io/httpget.cxx index e10a29b4..b4934b8d 100644 --- a/simgear/io/httpget.cxx +++ b/simgear/io/httpget.cxx @@ -12,7 +12,7 @@ #include #include #include -#include +#include 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) { diff --git a/simgear/io/test_HTTP.cxx b/simgear/io/test_HTTP.cxx index 048cbb41..988f8bba 100644 --- a/simgear/io/test_HTTP.cxx +++ b/simgear/io/test_HTTP.cxx @@ -12,7 +12,6 @@ #include #include #include -#include 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;