SystemProfiler MaximumPollsPerSecond Property Delta Engine Documentation

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

public int MaximumPollsPerSecond { get; set; }

Property Value

Type: Int32

Implements

SystemProfilingProvider MaximumPollsPerSecond
Remarks

Tests: DeltaEngine.Profiling.Tests.SystemProfilerTests
Examples

2 unit tests call DeltaEngine.Profiling.SystemProfiler.MaximumPollsPerSecond
[Test, CloseAfterFirstFrame]
public void VerifyDefaultProperties()
{
    Assert.IsFalse(SystemProfiler.Current.IsActive);
    Assert.AreEqual(10, SystemProfiler.Current.MaximumPollsPerSecond);
    Assert.IsTrue(new SystemProfiler().IsActive);
    Assert.AreEqual(10, new SystemProfiler().MaximumPollsPerSecond);
}
[Test, CloseAfterFirstFrame]
public void ChangeMaximumPollsPerSecond()
{
    var profiler = new SystemProfiler();
    profiler.MaximumPollsPerSecond = 2;
    Assert.AreEqual(2, profiler.MaximumPollsPerSecond);
}
See Also