perf counter for synchash

This commit is contained in:
Chris Forbes
2010-01-09 15:09:30 +13:00
parent ae979466a8
commit 66b5277a73

View File

@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using OpenRa.Game.Effects;
using OpenRa.Game.Support;
namespace OpenRa.Game
{
@@ -54,6 +55,8 @@ namespace OpenRa.Game
}
public int SyncHash()
{
using (new PerfSample("synchash"))
{
int ret = 0;
foreach (var a in Actors)
@@ -63,3 +66,4 @@ namespace OpenRa.Game
}
}
}
}