PerformanceTest.Benchmark.Stop C# (CSharp) Method

Stop() public method

public Stop ( ) : System.TimeSpan
return System.TimeSpan
        public TimeSpan Stop()
        {
            _stopwatch.Stop ();
            return _stopwatch.Elapsed;
        }

Usage Example

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