internal PerformanceReport.MetricSummary ToSummary()
            {
                var summary = new PerformanceReport.MetricSummary();

                summary.MetricName          = m_metricName;
                summary.TotalCount          = m_validCount + m_errorCount;
                summary.ErrorCount          = m_errorCount;
                summary.ValueMean           = m_mean;
                summary.ValueStdDeviation   = Math.Sqrt(m_sumOfDiffToTheMeanSqrd / m_validCount);
                summary.ValueMin            = m_min;
                summary.ValueMax            = m_max;
                summary.ValueMedian         = m_median;
                summary.ThroughPutPerSecond = m_thoughPutPerSecond;
                // summary.ValueMedian = CalcMedian(values);
                return(summary);
            }
 internal PerformanceReport.MetricSummary ToSummary()
 {
     var summary = new PerformanceReport.MetricSummary();
     summary.MetricName = m_metricName;
     summary.TotalCount = m_validCount + m_errorCount;
     summary.ErrorCount = m_errorCount;
     summary.ValueMean = m_mean;
     summary.ValueStdDeviation = Math.Sqrt(m_sumOfDiffToTheMeanSqrd/m_validCount);
     summary.ValueMin = m_min;
     summary.ValueMax = m_max;
     summary.ValueMedian = m_median;
     summary.ThroughPutPerSecond = m_thoughPutPerSecond;
     // summary.ValueMedian = CalcMedian(values);
     return summary;
 }