tickcount returns always 1000
#4

From https://sampwiki.blast.hk/wiki/Tickcount
tickcount(&granularity=0)
&granularity=0 Upon return, this value contains the number of ticks that the internal system time will tick per second. This value therefore indicates the accuracy of the return value of this function.
Returns The number of milliseconds since start-up of the system. For a 32-bit cell, this count overfows after approximately 24 days of continuous operation.

so you want the return, no the granularity.

Quote:
Originally Posted by Dark_Kostas
I tried to use tickcount, but it always returns 1000.
pawn Код:
new test;
test = GetTickCount();
printf("%d", test);//This will return normal tickcount
test = tickcount();
printf("%d", test);//This will return 1000
Reply


Messages In This Thread
tickcount returns always 1000 - by Dark_Kostas - 04.02.2010, 07:09
Re: tickcount returns always 1000 - by Sergei - 04.02.2010, 11:34
Re: tickcount returns always 1000 - by Zamaroht - 04.02.2010, 16:00
Re: tickcount returns always 1000 - by mansonh - 04.02.2010, 16:44
Re: tickcount returns always 1000 - by MadeMan - 04.02.2010, 16:51

Forum Jump:


Users browsing this thread: 1 Guest(s)