summaryrefslogtreecommitdiff
path: root/test/dgreftest/dgreftest.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2017-05-06 16:33:10 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2017-05-06 16:33:10 +0200
commit286cddccfd9d69f4bc567fc9f00898f06315cd30 (patch)
tree22ea704d16653483a972d8b16e0c8724c3d28828 /test/dgreftest/dgreftest.cc
parenta1f4e968563763435027a905be8349cda1974e00 (diff)
Get rid of unused unistd includes. Change the rest of the sleep calls to c++.
Diffstat (limited to 'test/dgreftest/dgreftest.cc')
-rw-r--r--test/dgreftest/dgreftest.cc5
1 files changed, 3 insertions, 2 deletions
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 <string>
#include <iostream>
#include <cassert>
-#include <unistd.h>
+#include <thread>
+#include <chrono>
#include <sys/types.h>
#include <sys/stat.h>
@@ -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();