tickcount/printf bug
#1

So I'm doing this simple execution time measuring:

Код:
new tick = tickcount();
(....)
printf("TIMER: MainTimer %i ms @ %i players", tickcount() - tick, Iter_Count(Player));
And all I get is 0ms, 20ms or 40ms [ONLY THREE VALUES!], even at loaded server, so i did it the other way:

Код:
new tick = tickcount();
new tick2;
(...)
tick2 = tickcount();
printf("%i %i", tick, tick2);
printf("TIMER: MainTimer %i ms @ %i players", tick2 - tick, Iter_Count(Player));
And I see that tick = tick2

What the hell is wrong with it? Also I remember that last time i used it it was working good but the times were always rounded to full 10s (10ms, 130ms 230ms etc)

Also using GetTickCount instead gives proper results (I think)
Reply


Messages In This Thread
tickcount bug - by DiDok - 18.01.2012, 23:27
Re: tickcount/printf bug - by Vince - 19.01.2012, 09:25
Re: tickcount/printf bug - by DiDok - 19.01.2012, 11:45

Forum Jump:


Users browsing this thread: 1 Guest(s)