From 286cddccfd9d69f4bc567fc9f00898f06315cd30 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 6 May 2017 16:33:10 +0200 Subject: Get rid of unused unistd includes. Change the rest of the sleep calls to c++. --- test/dgreftest/dgreftest.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'test/dgreftest') diff --git a/test/dgreftest/dgreftest.cc b/test/dgreftest/dgreftest.cc index f9eef03..ea38091 100644 --- a/test/dgreftest/dgreftest.cc +++ b/test/dgreftest/dgreftest.cc @@ -29,7 +29,8 @@ #include #include #include -#include +#include +#include #include #include @@ -99,7 +100,7 @@ int main(int argc, char* argv[]) while(settings.drumkit_load_status.load() != LoadStatus::Done) { - usleep(10000); + std::this_thread::sleep_for(std::chrono::milliseconds(10)); int total = settings.number_of_files.load(); int loaded = settings.number_of_files_loaded.load(); -- cgit v1.2.3