CodeProfilerTests ResetsIfEnoughTimeHasPassed 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 ResetsIfEnoughTimeHasPassed()
Examples

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