PerformanceTest.Benchmark.Stop C# (CSharp) 메소드

Stop() 공개 메소드

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

Usage Example

예제 #1
0
 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