SA-MP Forums Archive
Getting how much time a callback is executed in - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Getting how much time a callback is executed in (/showthread.php?tid=253535)



Getting how much time a callback is executed in - Skylar Paul - 07.05.2011

How can I do this? It probably involves GetTickCount, but i'm not sure; Can someone give me an example?


Re: Getting how much time a callback is executed in - sciman001 - 07.05.2011

pawn Код:
top of callback:

sta = GetTickCount();


bottom of callback:

sto = GetTickCount();
o = sto - sta;
printf("Callback time: %d ms", o);
somethin like tht


Re: Getting how much time a callback is executed in - xxmitsu - 07.05.2011

The solution is here: https://sampforum.blast.hk/showthread.php?tid=218491