Is this possible?
#1

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.
Reply
#2

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;
}
Reply
#3

by using Pawn Studio you will get the compile time printed in the status bar....
Reply
#4

Thanks for the info. Ill check out pawn studio so then i dont have to go through so much coding and configuring.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)