thanks for fast reply;
unser win32 there's Sleep() function that works with milliseconds. I code this:
But don't resolve my problem:Qt Code:
if (posy == 600 ) Sleep(10000) //10 secs;To copy to clipboard, switch view to plain text mode
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????
Bookmarks