CodeProfiler ResetInterval Property Delta Engine Documentation

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

public float ResetInterval { get; set; }

Property Value

Type: Single

Implements

CodeProfilingProvider ResetInterval
Remarks

Tests: DeltaEngine.Profiling.Tests.CodeProfilerTests
Examples

2 unit tests call DeltaEngine.Profiling.CodeProfiler.ResetInterval
[Test]
public void VerifyStaticProfilerDefaultProperties()
{
    var profiler = CodeProfiler.Current as CodeProfiler;
    Assert.AreEqual(10, profiler.MaximumPollsPerSecond);
    Assert.AreEqual(0, profiler.ResetInterval);
    Assert.IsFalse(profiler.IsActive);
}
[Test]
public void ChangeResetInterval()
{
    var profiler = new CodeProfiler(5, 10);
    Assert.AreEqual(10, profiler.ResetInterval);
    profiler.ResetInterval = 2;
    Assert.AreEqual(2, profiler.ResetInterval);
}
See Also