SystemProfilerTests ResetProfilingResult 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 ResetProfilingResult()
Examples

[Test, CloseAfterFirstFrame]
public void ResetProfilingResult()
{
    var profiler = new SystemProfiler();
    profiler.Log(ProfilingMode.Fps, systemInformation);
    SystemProfilerSection results = profiler.GetProfilingResults(ProfilingMode.Fps);
    results.Reset();
    Assert.AreEqual(0, results.Calls);
    Assert.AreEqual(0, results.TotalValue);
}
See Also