I'm trying to figure out how long it takes my QGraphicsView to redraw. I have tried the following:
QElapsedTimer timer;
timer.start();
complexViewTransformation();
qDebug() << timer.elapsed();
The problem is that I am getting very small results of 0 to 3 milliseconds, even though the content is visually stuttering. I think the small results happen because redrawing doesn't occur until the application re-enters the event loop. So how can I measure how long the redrawing actually takes?