17.12.2014, 16:31
Jonathan Faзa teus prуprios testes.
192 MS - MAX PLAYERS
26 MS - GetMaxPlayers
Teste e comprove.
Sу lembrando Jonathan aquele tуpico й de 2011 a 3 Anos atrбs.
pawn Код:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
public OnGameModeInit()
{
new Contador = GetTickCount();
for(new a; a < 10000; a++)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
}
}
printf("[MAX_PLAYERS]: Vezes 10000 || Tempo: %d ms", (GetTickCount() - Contador));
new ContadorB = GetTickCount();
for(new b; b < 10000; b++)
{
for(new f = 0, j = GetMaxPlayers(); f < j; f++)
{
}
}
printf("[GetMaxPlayers]: Vezes 10000 || Tempo: %d ms", (GetTickCount() - ContadorB));
return 1;
}
public OnGameModeExit()
{
return 1;
}
26 MS - GetMaxPlayers
Teste e comprove.
Sу lembrando Jonathan aquele tуpico й de 2011 a 3 Anos atrбs.