Ejemplo n.º 1
0
        public static double timeTrial(int i)
        {
            int num = 1000000;

            int[] array = new int[i];
            for (int j = 0; j < i; j++)
            {
                array[j] = StdRandom.uniform(-num, num);
            }
            Stopwatch stopwatch = new Stopwatch();

            ThreeSum.count(array);
            return(stopwatch.elapsedTime());
        }