[DEV] remove dependency of unistd.h
This commit is contained in:
parent
99521d9c6f
commit
a4ca5aa09c
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user