Oh my God. This is driving me mad.
Today my laptop (computer one) seems not to be accurate with GetTickCount() either! It worked perfectly yesterday!
Using timeGetTime on computer two solved...
Type: Posts; User: IamBMF
Oh my God. This is driving me mad.
Today my laptop (computer one) seems not to be accurate with GetTickCount() either! It worked perfectly yesterday!
Using timeGetTime on computer two solved...
I see.
Thanks a lot for your help! This looks like a community where one should stay! =P
@matsp: I do not need "precise" sleeps, it's just that I found out it wasn't precise while trying to solve my GetTickCount() problem, and was curious to know why. =)
@Elysia: That's weird, because...
Thank you very much. timeGetTime works very well.
What about Sleep()? Is it also not supposed to be accurate?
Sorry to double post, but I did a new test, and seem to have found one of the errors:
#include <windows.h>
#include <stdio.h>
int main()
{
while (1)
Computer one (works as expected) is a Pentium 4 (2 GHz), 256MB RAM. It is a laptop.
Computer two (does not works as expected) is a Pentium 4 (3.2 GHz), 1GB RAM. It is not a laptop.
I'm running...
Hello,
while working on some application, I encountered some weird behaviours and started tracking the problem, until I found out what it was. GetTickCount() didn't seem to properly behave. While...