01.05.2012, 19:08
Код:
[16:14:40] Bench for 2: executes, by average, 3473.32 times/ms. [16:14:42] Bench for 1: executes, by average, 3804.91 times/ms.
@Edit:
Other method.
pawn Код:
#include a_samp
public OnFilterScriptInit()
{
new f = 0;
new t = 1;
new locate = GetTickCount();
for(new i; i != 1000000; ++i)
{
if(t && f) {}
if(f && t) {}
}
printf("Reply of metod whidth &&: %d", GetTickCount() - locate);
locate = GetTickCount();
for(new i; i != 1000000; ++i)
{
if(t) if(f) {}
if(f) if(t) {}
}
printf("Reply of metod whidth IF: %i", GetTickCount() - locate);
}
Код:
[16:19:22] Reply of metod whidth &&: 92 [16:19:22] Reply of metod whidth IF: 94