public void Dispose()
 {
     if (_record != null)
     {
         _record.MarkEnd(_stopwatch.Elapsed.TotalMilliseconds);
     }
 }
        public IEnumerable <PerfRecord> Finish()
        {
            if (!_enabled)
            {
                return(null);
            }

            _main?.MarkEnd(_stopwatch.Elapsed.TotalMilliseconds);
            _stopwatch.Stop();
            return(AllRecords);
        }
 public void Dispose()
 {
     _record?.MarkEnd(_stopwatch.Elapsed.TotalMilliseconds);
 }
示例#4
0
 public IEnumerable <PerfRecord> Finish()
 {
     _main?.MarkEnd(_stopwatch.ElapsedMilliseconds);
     _stopwatch.Stop();
     return(AllRecords);
 }