Add FPS counter

This commit is contained in:
2023-02-18 15:55:25 +01:00
parent 2daafde7f2
commit 4da6ad7d28
3 changed files with 16 additions and 0 deletions

View File

@ -149,6 +149,8 @@ void DmxController::sendDmxBuffer()
if (m_lastInfo.msecsTo(now) >= 1000)
{
qInfo("%i per second", m_counter);
m_lastCounter = m_counter;
emit performanceChanged(m_counter);
m_counter = 0;
m_lastInfo = now;
}