Benchmarkr.BenchmarkBase.PerformTest C# (CSharp) 메소드

PerformTest() 개인적인 메소드

private PerformTest ( Action test ) : System.TimeSpan
test Action
리턴 System.TimeSpan
        internal TimeSpan PerformTest(Action<BenchmarkBase> test)
        {
            var stopwatch = new Stopwatch();
            stopwatch.Start();
            test(this);
            stopwatch.Stop();
            return stopwatch.Elapsed;
        }