public OnPlayerConnect(playerid) { new count = GetTickCount(); //Rest of OnPlayerConnect printf("Time taken to execute OnPlayerConnect: %d", GetTickCount() - count); return 1; }
Using GetTickCount is not the right way to do this at all. It only tells you how long a single piece of code might take to run (and very very very inaccurately). It won't tell you which parts are actually slow, nor which parts are run a lot. You need the profiler plugin.