private void KeepResult(int sampleSize, TimeSpan value) { var result = new PerformanceMeasurementResult( _objectUnderMeasurement.Name, sampleSize, value ); Results.Add(result); }
private void KeepResultWithExpectedPoorPerformance(int sampleSize) { const string message = "Poor performance is expected."; var result = new PerformanceMeasurementResult( _objectUnderMeasurement.Name, sampleSize, message ); Results.Add(result); }