From d2cbe535c2ac3ca2cf52a30e2c72c98149c6d442 Mon Sep 17 00:00:00 2001 From: Torsten Dreyer Date: Mon, 2 May 2016 21:25:19 +0200 Subject: [PATCH] Use simgear sleep instead of usleep --- simgear/io/test_DNS.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); } -- 2.39.5