Make Stopwatch.ElapsedTime() a property and TimeSpan

This commit is contained in:
Pavlos Touboulidis
2014-04-23 00:56:07 +03:00
parent 082667eeea
commit 035834978d
10 changed files with 29 additions and 28 deletions

View File

@@ -478,7 +478,7 @@ namespace OpenRA
Tick(orderManager);
var waitTime = Math.Min(idealFrameTime - sw.ElapsedTime(), 1);
var waitTime = Math.Min(idealFrameTime - sw.Elapsed.TotalSeconds, 1);
if (waitTime > 0)
System.Threading.Thread.Sleep(TimeSpan.FromSeconds(waitTime));
}