GetTickCount
#4

11 commands in a switch, needing 0 ms to execute, seems legit. any value >0 would make me think you underclocked your pc ^^

oh, try 1000 or more iterations. and divide the returned value by that amount. it will be *really* close to 0.000000000000000000000000000000000000000000000000 0000000000000000000000000000000000
Код:
for(new i=0;i<10000;i++){
            TextDrawShowForPlayer ( playerid, UserCP_Title );
            TextDrawShowForPlayer ( playerid, UserCP_TopLine );
            TextDrawShowForPlayer ( playerid, UserCP_ChangePW );
            TextDrawShowForPlayer ( playerid, UserCP_ChangeUsername );
            TextDrawShowForPlayer ( playerid, UserCP_Resync );
            TextDrawShowForPlayer ( playerid, UserCP_ViewMap );
            TextDrawShowForPlayer ( playerid, UserCP_ViewAccInfo );
            TextDrawShowForPlayer ( playerid, UserCP_BottomLine );
}
ok, srsly: copy all the command code into a callback, let it get called from within the command then, and dont forget to use the performance profiler, it will give you accurate results: estimating short routines in milliseconds is not precise enough - your code is too fast for the "low" 0.001 sec timers' resolution. it needs 0.000001 precision.
Reply


Messages In This Thread
GetTickCount - by 2KY - 15.02.2013, 15:42
Re: GetTickCount - by Da_Noob - 15.02.2013, 16:40
Re: GetTickCount - by 2KY - 15.02.2013, 16:50
Re: GetTickCount - by Babul - 15.02.2013, 19:41

Forum Jump:


Users browsing this thread: 1 Guest(s)