示例#1
0
        static void PerformCountSort(int sizeArray)
        {
            SortingAlgorithms sorting = new InsertSort(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");
        }