diff --git a/src/AppFrame.cpp b/src/AppFrame.cpp index d737ca0..af93aae 100644 --- a/src/AppFrame.cpp +++ b/src/AppFrame.cpp @@ -783,11 +783,7 @@ void AppFrame::OnIdle(wxIdleEvent& event) { demodWaterfallCanvas->processInputQueue(); if (!this->IsActive()) { -#ifndef _WIN32 - usleep(25000); -#else - Sleep(25); -#endif + std::this_thread::sleep_for(std::chrono::milliseconds(25)); } event.RequestMore(); diff --git a/src/process/FFTVisualDataThread.cpp b/src/process/FFTVisualDataThread.cpp index 67f4549..df5a9bf 100644 --- a/src/process/FFTVisualDataThread.cpp +++ b/src/process/FFTVisualDataThread.cpp @@ -36,11 +36,7 @@ void FFTVisualDataThread::run() { while(!terminated) { -#ifndef _WIN32 - usleep(15000); -#else - Sleep(15); -#endif + std::this_thread::sleep_for(std::chrono::milliseconds(15)); int fftSize = wproc.getDesiredInputSize();