コード例 #1
0
		public BenchmarkResult(BenchmarkParameters parameters)
		{
			this.parameters = parameters;
			lastOperationFinishedDate = DateTime.Now;

			messages = new List<string>();
			Histogram = new Histogram();

			Stopwatch = new Stopwatch();
			StartTimer();
		}
コード例 #2
0
		public void Merge(Histogram other)
		{
			if (other.min < min) min = other.min;
			if (other.max > max) max = other.max;
			num += other.num;
			sum += other.sum;
			sumSquares += other.sumSquares;
			for (var b = 0; b < NumberOfBuckets; b++)
			{
				buckets[b] += other.buckets[b];
			}
		}