17.06.2011, 12:46
I like this question. My solution is simply just a guess, but you can try it out. Since PAWN is single threaded, try using RyDeR`'s pawnCompiler and measure the time it takes for the function to be called. I just wrote a small and untested function that can possibly check the amount of time it compiles. Please reply with a result.
pawn Код:
stock measureCompileTime( scriptName[ ] )
{
static
s_tick = GetTickCount( )
;
print( compileScript( "scriptfiles", scriptName ) ); // compileScript returns status.
return GetTickCount( ) - s_tick;
}