From 92db9682e04dbf727d590640e6ba8850b00b0bba Mon Sep 17 00:00:00 2001 From: Mathias Froehlich Date: Fri, 28 Oct 2011 16:58:29 +0200 Subject: [PATCH] Make use of SGTimeStamp::sleep*. --- simgear/io/httpget.cxx | 4 ++-- simgear/io/test_HTTP.cxx | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) 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; -- 2.39.5