aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickthreadedwindowmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/quick/items/qquickthreadedwindowmanager.cpp')
-rw-r--r--src/quick/items/qquickthreadedwindowmanager.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/quick/items/qquickthreadedwindowmanager.cpp b/src/quick/items/qquickthreadedwindowmanager.cpp
index 3d480ce492..653192b1cc 100644
--- a/src/quick/items/qquickthreadedwindowmanager.cpp
+++ b/src/quick/items/qquickthreadedwindowmanager.cpp
@@ -476,10 +476,14 @@ void QQuickRenderThreadSingleContextWindowManager::run()
#ifdef QQUICK_RENDER_TIMING
if (qquick_render_timing()) {
+ static QTime lastFrameTime = QTime::currentTime();
swapTime = threadTimer.elapsed() - renderTime;
qDebug() << "- Breakdown of frame time; sync:" << syncTime
<< "ms render:" << renderTime << "ms swap:" << swapTime
- << "ms total:" << swapTime + renderTime << "ms";
+ << "ms total:" << swapTime + renderTime
+ << "ms time since last frame:" << (lastFrameTime.msecsTo(QTime::currentTime()))
+ << "ms";
+ lastFrameTime = QTime::currentTime();
}
#endif