fix broken indent in WorldUtils.cs
This commit is contained in:
@@ -145,18 +145,18 @@ namespace OpenRA
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void DoTimed<T>(this IEnumerable<T> e, Action<T> a, string text, double time)
|
public static void DoTimed<T>(this IEnumerable<T> e, Action<T> a, string text, double time)
|
||||||
{
|
{
|
||||||
var sw = new Stopwatch();
|
var sw = new Stopwatch();
|
||||||
|
|
||||||
e.Do(x =>
|
e.Do(x =>
|
||||||
{
|
{
|
||||||
var t = sw.ElapsedTime();
|
var t = sw.ElapsedTime();
|
||||||
a(x);
|
a(x);
|
||||||
var dt = sw.ElapsedTime() - t;
|
var dt = sw.ElapsedTime() - t;
|
||||||
if (dt > time)
|
if (dt > time)
|
||||||
Log.Write("perf", text, x, dt * 1000, Game.LocalTick);
|
Log.Write("perf", text, x, dt * 1000, Game.LocalTick);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user