PDA

View Full Version : How to estimate painting time?



1111
3rd March 2009, 19:38
Hello all,

I would like to create composite widget and I was wondering if there is some measurement system that can measure painting value (time, mathematical operations, etc.) for my widget. Foe instance, how long does it take to redraw it on the screen, how many operations it takes to expand or collapse it, etc.

Cruz
3rd March 2009, 22:24
Well, you can always use QTime (http://doc.trolltech.com/4.3/qtime.html) to measure the runtime of your code. It's best if you sum up the time of say 1000 executions and then divide it by the amount of runs.