MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / refresh

Method refresh

gui/qt/lcdwidget.cpp:179–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179double LCDWidget::refresh() {
180 std::chrono::steady_clock::time_point timeNFramesAgo = m_perfArray[m_perfIndex];
181 m_perfArray[m_perfIndex] = std::chrono::steady_clock::now();
182 std::chrono::duration<double> diff = m_perfArray[m_perfIndex] - timeNFramesAgo;
183 double guiFrameTime = diff.count() / PerfArraySize;
184 if (++m_perfIndex == PerfArraySize) {
185 m_perfIndex = 0;
186 }
187 update();
188 return guiFrameTime;
189}
190
191void LCDWidget::setMain() {
192 m_mutex.lock();

Callers 2

lcdUpdateMethod · 0.45
varShowMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected