We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi guys!
Have faced some very interesting problem with GetTheTickCount.
Imagine I placed to the task, in some endless loop, such code:
Code: x = GetTheTickCount{}; Sleep(1000); x = GetTheTickCount{} - x;
What do you think the "x" contains? Usually this is value >= 1000, but sometimes it is 999, and more curious, sometimes it is 998. Tested with 997 and looks like this never happens.
Do you know why after 1000 milliseconds sleep GetTickCount shows 998 milliseconds difference?
Ho gee, sorry - you did use the tags! Just post the code and we'll see!
Hei Tamir Michel!
the complete function we call from my task is is :
varGetTheTickCountInteger x; x = GetTheTickCount{}; Sleep(1000); x = GetTheTickCount{} - x;
where is the code for GetTheTickCount ? i cannot find it. it is in the OS ?
Then find it. Nobody can help you without it.
You haven't stated what OS you are using - so how do you expect anyone to know the answer to that?!
You are the only one who has the code in front of you, therefore, you are the only one who can answer this question!
You also haven't shown the definition of varGetTheTickCountInteger...
Hei all.
we skyped Harish and he said he will patched the file so it now works..
good work everyone
I knew harish maharisi yogi will solve the problem! Well done!