CodeProfilerTests DoesNotResetIfTooShortATimeHasPassed Method Delta Engine Documentation

Namespace: DeltaEngine.Profiling.Tests
Assembly: DeltaEngine.Profiling.Tests (in DeltaEngine.Profiling.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void DoesNotResetIfTooShortATimeHasPassed()
Examples

[Test]
public void DoesNotResetIfTooShortATimeHasPassed()
{
    var profiler = new CodeProfiler(1, 1);
    Thread.Sleep(2);
    profiler.BeginFrame();
    Assert.AreEqual(0.0f, profiler.lastResetTime);
}
See Also