1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-22 16:08:39 -05:00

Set timer to be precise before calling start, otherwise it is ignored on Windows

This commit is contained in:
Jon Beniston 2023-03-08 16:35:30 +00:00
parent 54288cf4c7
commit 32a2d202fd

View File

@ -64,6 +64,7 @@ TestSourceWorker::TestSourceWorker(SampleSinkFifo* sampleFifo, QObject* parent)
{
connect(&m_inputMessageQueue, SIGNAL(messageEnqueued()), this, SLOT(handleInputMessages()), Qt::QueuedConnection);
connect(&m_timer, SIGNAL(timeout()), this, SLOT(tick()));
m_timer.setTimerType(Qt::PreciseTimer);
m_timer.start(50);
}
@ -76,7 +77,6 @@ TestSourceWorker::~TestSourceWorker()
void TestSourceWorker::startWork()
{
qDebug("TestSourceWorker::startWork");
m_timer.setTimerType(Qt::PreciseTimer);
m_running = true;
}