Beispiel #1
0
        static void Main(string[] args)
        {
            StopWatch test = new StopWatch();

            int[] arr = GetArray();
            test.Start();
            Sort(arr);
            test.End();
            Console.WriteLine(test.GetElapsedTime());
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            StopWatch st = new StopWatch();

            int[] arr = new int[100];

            st.InputArray(ref arr);
            Console.WriteLine(st.Start());
            st.SortArray(ref arr);
            st.ShowArray(arr);

            Console.WriteLine(st.End());
            Console.WriteLine(st.GetElapsedTime());
        }