debug (timing) spam, and perf fixed on SupportPower

Build timing (un)hacked by chrisf
This commit is contained in:
Bob
2010-05-16 17:27:19 +12:00
committed by Chris Forbes
parent de9ec12c8c
commit 7deefc5246
8 changed files with 136 additions and 23 deletions

View File

@@ -28,7 +28,9 @@ namespace OpenRA.Support
public static void Time( string message )
{
var time = sw.ElapsedTime();
Log.Write( message, time - lastTime );
var dt = time - lastTime;
if( dt > 0.0001 )
Log.Write( message, dt );
lastTime = time;
}
}