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

[Test, Category("Slow")]
public void CheckIndividualDurationOfDoingSomethingFastAMillionTimes()
{
    var profiler = new DelegateProfiler(DoSomeMaths, 1000000);
    int duration = profiler.AverageDurationInPicoseconds;
    Assert.IsTrue(duration > 5);
    Console.WriteLine(duration + " picoseconds each");
}
See Also