Namespace: DeltaEngine.Core
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Tests: DeltaEngine.Tests.Core.GlobalTimeTests
4 unit tests call DeltaEngine.Core.GlobalTime.Milliseconds
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Property Value
Type: Int64Remarks
Examples
[Test] public void RunTime() { time.Update(); Assert.LessOrEqual(time.Milliseconds, 50); }
[Test] public void RunTimeWithStopwatch() { time = new StopwatchTime(); time.Update(); Assert.IsTrue(time.Milliseconds < 2, "Milliseconds=" + time.Milliseconds); }
[Test] public void CalculateFps() { do time.Update(); while (time.Milliseconds <= 1000); Assert.IsTrue(Math.Abs(time.Fps - 20) <= 1, "Fps=" + time.Fps); }
See Also