Namespace: DeltaEngine.Tests.Core
Assembly: DeltaEngine.Tests (in DeltaEngine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: DeltaEngine.Tests (in DeltaEngine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test, Ignore] public void CalculateFpsWithStopwatch() { time = new StopwatchTime(); const int TargetFps = 30; do { Thread.Sleep(1000 / TargetFps); time.Update(); } while (time.Milliseconds < 1000); Assert.IsTrue(Math.Abs(time.Fps - TargetFps) <= 5, "Fps=" + time.Fps); }
See Also