If Statements x &&
#6

Код:
[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.
Small diference..


@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
Reply


Messages In This Thread
If Statements x && - by ipsBruno - 01.05.2012, 18:29
Re: If Statements x && - by iRemix - 01.05.2012, 18:34
Respuesta: Re: If Statements x && - by ipsBruno - 01.05.2012, 18:37
Re: If Statements x && - by Kaczmi - 01.05.2012, 18:56
Respuesta: If Statements x && - by ipsBruno - 01.05.2012, 19:00
Re: If Statements x && - by zSuYaNw - 01.05.2012, 19:08
Re: If Statements x && - by steki. - 01.05.2012, 19:13
Respuesta: If Statements x && - by ipsBruno - 01.05.2012, 19:18

Forum Jump:


Users browsing this thread: 4 Guest(s)