private static void ProcessSingleAlgo(IScheduler algorithm) { WriteColorLine(ConsoleColor.Green, "==================="); Console.WriteLine(algorithm.GetDescription(machinesCount, jobs.Length)); SchedulingResult result = null; var executionTime = Benchmark.MeasureExecutionTime(() => { result = algorithm.Schedule(jobs, Enumerable.Range(0, machinesCount).Select(x => new Processor(x.ToString(CultureInfo.InvariantCulture))).ToList()); }); PrintResult(result, executionTime); }