ore timing too

This commit is contained in:
Chris Forbes
2009-11-04 20:44:05 +13:00
parent db89136adf
commit 0d2b7eb855
2 changed files with 7 additions and 3 deletions

View File

@@ -143,6 +143,7 @@ namespace OpenRa.Game
public static int RenderFrame = 0;
public static double RenderTime = 0.0;
public static double TickTime = 0.0;
public static double OreTime = 0.0;
public static Stopwatch sw;
@@ -162,7 +163,9 @@ namespace OpenRa.Game
if (--oreTicks == 0)
{
map.GrowOre(p => IsCellBuildable(p, UnitMovementType.Wheel), SharedRandom);
var oresw = new Stopwatch();
map.GrowOre(p => IsCellBuildable(p, UnitMovementType.Wheel), SharedRandom);
OreTime = oresw.ElapsedTime();
oreTicks = oreFrequency;
}
world.Tick();