[DEV] remove dependency of unistd.h

This commit is contained in:
Edouard DUPIN 2016-10-13 21:29:18 +02:00
parent 99521d9c6f
commit a4ca5aa09c

View File

@ -12,7 +12,7 @@
#include <chrono>
#include <ethread/tools.hpp>
#include <unistd.h>
class Performance {
@ -148,7 +148,7 @@ int main(int _argc, const char** _argv) {
algo.process(&output[iii*blockSize], &fbData[iii*blockSize], &micData[iii*blockSize], blockSize);
if (perf == true) {
perfo.toc();
usleep(1000);
std::this_thread::sleep_for(std::chrono::milliseconds(1));
}
}
} else {
@ -172,7 +172,7 @@ int main(int _argc, const char** _argv) {
algo.process(&output[iii*blockSize], &fbData[iii*blockSize], &micData[iii*blockSize], blockSize);
if (perf == true) {
perfo.toc();
usleep(1000);
std::this_thread::sleep_for(std::chrono::milliseconds(1));
}
}
}