DelegateProfilerTests DurationOfSingularFastActionIsNoticed 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 DurationOfSingularFastActionIsNoticed()
Examples

[Test, Timeout(5000)]
public void DurationOfSingularFastActionIsNoticed()
{
    var profiler = new DelegateProfiler(DoSomeMaths, 1);
    int duration = profiler.AverageDurationInPicoseconds;
    Assert.IsTrue(duration > 0);
}
See Also