예제 #1
0
        static void PerformMergeSort(int sizeArray)
        {
            SortingAlgorithms sorting = new MergeSort(sizeArray);

            sorting.FillArray();
            Stopwatch watch = new Stopwatch();

            watch.Start();
            sorting.SortArray();
            watch.Stop();
            var arr = sorting.GetSortedArray;

            Print(arr);
            Console.WriteLine($"Total Execution Time: {watch.ElapsedMilliseconds} ms");
        }