Results 1 to 3 of 3

Thread: How to measure a time difference in miliseconds?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    8
    Thanked 334 Times in 317 Posts

    Default Re: How to measure a time difference in miliseconds?

    Qt Code:
    1. QTime time;
    2. time.start();
    3. // operation
    4. int difference = time.elapsed();
    To copy to clipboard, switch view to plain text mode 

  2. The following user says thank you to aamer4yu for this useful post:

    TomASS (26th April 2010)

Similar Threads

  1. Date and Time Difference
    By MIH1406 in forum Newbie
    Replies: 4
    Last Post: 20th August 2012, 15:03
  2. Difference between the regulare MVC
    By Jonas_ in forum Newbie
    Replies: 3
    Last Post: 2nd September 2009, 14:59
  3. Replies: 1
    Last Post: 7th October 2008, 12:11
  4. check the time of last time keyboard is pressed
    By Aki Tomar in forum General Programming
    Replies: 2
    Last Post: 5th February 2008, 09:10
  5. How to measure memory of Qt Application,
    By rajeshs in forum Qt Programming
    Replies: 2
    Last Post: 10th July 2007, 17:03

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
  •  
Qt is a trademark of The Qt Company.