From: Torsten Dreyer Date: Mon, 2 May 2016 19:25:19 +0000 (+0200) Subject: Use simgear sleep instead of usleep X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d2cbe535c2ac3ca2cf52a30e2c72c98149c6d442;p=simgear.git Use simgear sleep instead of usleep --- diff --git a/simgear/io/test_DNS.cxx b/simgear/io/test_DNS.cxx index 0e9d17ff..d6c1a4d0 100644 --- a/simgear/io/test_DNS.cxx +++ b/simgear/io/test_DNS.cxx @@ -15,6 +15,7 @@ #include #include +#include using std::cout; using std::cerr; @@ -44,7 +45,7 @@ int main(int argc, char* argv[]) DNS::Request_ptr r(naptrRequest); cl.makeRequest(r); while( !r->isComplete() && !r->isTimeout()) { - usleep(200000); + SGTimeStamp::sleepForMSec(200); cl.update(0); } @@ -100,7 +101,7 @@ int main(int argc, char* argv[]) DNS::Request_ptr r(naptrRequest); cl.makeRequest(r); while( !r->isComplete() && !r->isTimeout()) { - usleep(200000); + SGTimeStamp::sleepForMSec(200); cl.update(0); }