Results 1 to 2 of 2

Thread: How to estimate painting time?

  1. #1
    Join Date
    Nov 2008
    Posts
    17
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question How to estimate painting time?

    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.

  2. #2
    Join Date
    Jan 2009
    Location
    Germany
    Posts
    387
    Thanks
    101
    Thanked 15 Times in 15 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to estimate painting time?

    Well, you can always use QTime 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.

Similar Threads

  1. How to constantly refresh time on a view
    By salmanmanekia in forum Qt Programming
    Replies: 5
    Last Post: 23rd June 2008, 12:44
  2. Replies: 1
    Last Post: 1st February 2008, 18:55
  3. QDateTime GMT add sec. or - sec. from locale time....
    By patrik08 in forum Qt Programming
    Replies: 2
    Last Post: 20th February 2007, 16:39
  4. Problem with pointers while using localtime() and time()
    By jamadagni in forum General Programming
    Replies: 7
    Last Post: 11th January 2006, 15:48

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.