Is this possible? - 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: Is this possible? (
/showthread.php?tid=262279)
Is this possible? -
Lorenc_ - 17.06.2011
Hey, is it possible to calculate your compile time?
Like how long it takes to compile a Filterscript/Gamemode. I'm so desperate to find out how fast my gamemode compiles.
Re: Is this possible? -
Cyanide - 17.06.2011
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;
}
Re: Is this possible? -
Babul - 17.06.2011
by using Pawn Studio you will get the compile time printed in the status bar....
Re: Is this possible? -
Lorenc_ - 18.06.2011
Thanks for the info. Ill check out pawn studio so then i dont have to go through so much coding and configuring.