--- qsampler/trunk/src/qsamplerMainForm.cpp 2020/01/02 16:31:02 3684 +++ qsampler/trunk/src/qsamplerMainForm.cpp 2020/01/02 19:03:34 3685 @@ -58,6 +58,8 @@ #include #include +#include + #if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) #include #endif @@ -2929,9 +2931,9 @@ // Give it some time to terminate gracefully and stabilize... if (bGraceWait) { - QTime t; - t.start(); - while (t.elapsed() < QSAMPLER_TIMER_MSECS) + QElapsedTimer timer; + timer.start(); + while (timer.elapsed() < QSAMPLER_TIMER_MSECS) QApplication::processEvents(QEventLoop::ExcludeUserInputEvents); } } @@ -2961,9 +2963,9 @@ // Force final server shutdown... m_pServer->kill(); // Give it some time to terminate gracefully and stabilize... - QTime t; - t.start(); - while (t.elapsed() < QSAMPLER_TIMER_MSECS) + QElapsedTimer timer; + timer.start(); + while (timer.elapsed() < QSAMPLER_TIMER_MSECS) QApplication::processEvents(QEventLoop::ExcludeUserInputEvents); } // Force final server shutdown...