Skip to content

Instantly share code, notes, and snippets.

@fraga
Created May 22, 2013 14:57
Show Gist options
  • Save fraga/5628201 to your computer and use it in GitHub Desktop.
Save fraga/5628201 to your computer and use it in GitHub Desktop.
SysCompileAll with timing
static void main(Args args)
{
System.Diagnostics.Stopwatch stopWatch;
System.TimeSpan elapsed;
if (SysCompileAll::prompt())
{
stopWatch = new System.Diagnostics.Stopwatch();
stopWatch.Start();
infolog.messageWin().activate();
SysCompileAll::flushClient();
SysCompileAll::compile();
SysCheckList::finished(classnum(SysCheckListItem_Compile));
SysCheckList::finished(classnum(SysCheckListItem_CompileUpgrade));
SysCheckList::finished(className2Id(classStr(SysCheckListItem_CompileServ)));
stopWatch.Stop();
elapsed = stopWatch.get_Elapsed();
info(strFmt("Elapsed time: %1", CLRInterop::getAnyTypeForObject(elapsed.ToString())));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment