Benchmarkr.BenchmarkBase.PerformTest C# (CSharp) Method

PerformTest() private method

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