private static void Demo_ParallelQuickSort(int[] intArray) { Console.WriteLine("\n=== 병렬 QucikSort ==="); Stopwatch stopWatch = new Stopwatch(); stopWatch.Restart(); ParallelQuickSort.QuicksortParallel(intArray); stopWatch.Stop(); Console.WriteLine($"경과 시간 : {stopWatch.ElapsedMilliseconds / 1000d}초"); }
private static void Demo_SequentialSort(int[] intArray) { Console.WriteLine("\n=== 순차 Sequential 정렬 ==="); Stopwatch stopWatch = new Stopwatch(); stopWatch.Start(); ParallelQuickSort.QuicksortSequential(intArray); stopWatch.Stop(); Console.WriteLine($"경과 시간 : {stopWatch.ElapsedMilliseconds / 1000d}초"); }