Remove custom Stopwatch wrapper

Remove the redirection (that doesn't offer any new functionality)
and replace it with the familiar System.Diagnostics.Stopwatch.
This commit is contained in:
Pavlos Touboulidis
2014-04-26 23:49:21 +03:00
parent 275f6683c6
commit c28faffa45
10 changed files with 18 additions and 43 deletions

View File

@@ -10,6 +10,7 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using OpenRA.Support;
@@ -81,7 +82,7 @@ namespace OpenRA.Traits
{
var prev = act;
var sw = new Stopwatch();
var sw = Stopwatch.StartNew();
act = act.Tick(self);
var dt = sw.Elapsed;
if (dt > Game.Settings.Debug.LongTickThreshold)