Results 1 to 7 of 7

Thread: clock() function

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    Join Date
    Jan 2006
    Posts
    976
    Thanks
    53
    Qt products
    Qt3
    Platforms
    Windows

    Default Re: clock() function

    thanks for fast reply;
    unser win32 there's Sleep() function that works with milliseconds. I code this:
    Qt Code:
    1. if (posy == 600 ) Sleep(10000) //10 secs;
    To copy to clipboard, switch view to plain text mode 
    But don't resolve my problem:
    I'm inside a while that catch mouse event also : Sleep block all;
    Furthermore: clock() isn't stopped; so next time print() doesn't print at '0' point but '0' + something.... nut problem? thanks.....
    ----
    additional prob:
    int posy = ((int) (clock()/20)) %600; posy is an int: so the when print at '0' and print at '1' I can see a very little jump.....a float value should be more linear...... but I read '%' works between int????
    Last edited by mickey; 10th September 2006 at 23:48.
    Regards

Similar Threads

  1. use qpsql
    By raphaelf in forum Installation and Deployment
    Replies: 34
    Last Post: 22nd August 2006, 12:52
  2. Qt 4.1.4 plugin QPSQL
    By jcr in forum Installation and Deployment
    Replies: 4
    Last Post: 22nd June 2006, 22:55
  3. I got two problems when I used static compiled library of QT4
    By qintm in forum Installation and Deployment
    Replies: 8
    Last Post: 20th April 2006, 08:52
  4. Unable to execute in Debug Mode
    By Kapil in forum Installation and Deployment
    Replies: 38
    Last Post: 5th April 2006, 07:27
  5. use libs under qt4
    By raphaelf in forum Qt Programming
    Replies: 6
    Last Post: 27th February 2006, 17:59

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.