I have a question regarding GetTickCount function,
I have two calls to this function in my code with several commands between them and the function in both calls returns same count.
i.e.
var1 = GetTickCount();
code
:
:
var2 = GetTickCount();
var1 and var2 has same values in it.
can someone help?
Assuming this is the Windows GetTickCount call, that’s entirely reasonable:
Note that it’s only measuring milliseconds to start with – and you can do an awful lot in a millisecond these days.
The docs go on to say:
Perhaps
QueryPerformanceCounterwould be more appropriate?