public BenchmarkHandler(ComputeDevice device, Queue <Algorithm> algorithms, IBenchmarkForm form, BenchmarkPerformanceType performance) { Device = device; _benchmarkAlgorithmQueue = algorithms; _benchmarkForm = form; _performanceType = performance; _benchmarkAlgorithmsCount = _benchmarkAlgorithmQueue.Count; }
public BenchmarkHandler(ComputeDevice device, Queue <Algorithm> algorithms, IBenchmarkForm form, BenchmarkPerformanceType performance) { _stopBenchmark = new CancellationTokenSource(); Device = device; _benchmarkAlgorithmQueue = algorithms; _benchmarkForm = form; _performanceType = performance; _benchmarkAlgorithmsCount = _benchmarkAlgorithmQueue.Count; _powerHelper = new PowerHelper(device); }