[DEV] remove dependency of unistd.h
This commit is contained in:
parent
99521d9c6f
commit
a4ca5aa09c
@ -12,7 +12,7 @@
|
|||||||
#include <chrono>
|
#include <chrono>
|
||||||
#include <ethread/tools.hpp>
|
#include <ethread/tools.hpp>
|
||||||
|
|
||||||
#include <unistd.h>
|
|
||||||
|
|
||||||
|
|
||||||
class Performance {
|
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);
|
algo.process(&output[iii*blockSize], &fbData[iii*blockSize], &micData[iii*blockSize], blockSize);
|
||||||
if (perf == true) {
|
if (perf == true) {
|
||||||
perfo.toc();
|
perfo.toc();
|
||||||
usleep(1000);
|
std::this_thread::sleep_for(std::chrono::milliseconds(1));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -172,7 +172,7 @@ int main(int _argc, const char** _argv) {
|
|||||||
algo.process(&output[iii*blockSize], &fbData[iii*blockSize], &micData[iii*blockSize], blockSize);
|
algo.process(&output[iii*blockSize], &fbData[iii*blockSize], &micData[iii*blockSize], blockSize);
|
||||||
if (perf == true) {
|
if (perf == true) {
|
||||||
perfo.toc();
|
perfo.toc();
|
||||||
usleep(1000);
|
std::this_thread::sleep_for(std::chrono::milliseconds(1));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user