PerformanceTest.Benchmark.Time C# (CSharp) Method

Time() public static method

public static Time ( string opName, System.Action action ) : System.TimeSpan
opName string
action System.Action
return System.TimeSpan
        public static TimeSpan Time (string opName, Action action)
        {
            var mark = new Benchmark (opName).Start ();
            action ();
            mark.Stop ();
            logger.Info (mark.ToString ());
            return mark.Elapsed;
        }

Same methods

Benchmark::Time ( string opName, System.Action action, int loopCount, bool warmup ) : System.TimeSpan