UNB/ CS/ David Bremner/ teaching/ java/ SelSortTest.java
public class SelectionSortTest
{ final static int STEP=1000;
  public static void main(String[] args)

   { 
     StopWatch clock=new StopWatch();
     
     for (int len=STEP; len < STEP*15; len+=STEP){
       int[] a = ArrayUtil.randomIntArray(len, 1000000);
       clock.start();
       SelectionSort.sort(a);
       clock.stop();
       System.out.println(len +"\t"+clock.getElapsedTime());
       clock.reset();
     }
   }
}