Results 1 to 2 of 2

Thread: finding the time interval of executing a program

  1. #1
    Join Date
    Nov 2007
    Posts
    291
    Thanks
    85
    Thanked 1 Time in 1 Post

    Question finding the time interval of executing a program

    hi
    is there any function to calculate the execution time of a program in QT.

    the QTimer class has no functionality to do this .

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,312
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: finding the time interval of executing a program

    Maybe you are looking for something like:

    Qt Code:
    1. QTime time = QTime::currentTime();
    2. ...
    3. qDebug() << time.elapsed();
    To copy to clipboard, switch view to plain text mode 

    Uwe

  3. The following user says thank you to Uwe for this useful post:

    babu198649 (13th December 2007)

Similar Threads

  1. QT MySQL
    By sabeeshcs in forum Newbie
    Replies: 6
    Last Post: 12th January 2007, 04:19

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.