cockmagic

Untitled

Dec 1st, 2015
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. public static void main(String[] args) {
  2. arrayGenerator a1 = new arrayGenerator();
  3. for(int i=10;i<= 2010;i+=10){
  4. long avg =0;
  5. for (int j =0; j <= 2500;j++){
  6. int[] l= a1.createSort(i);
  7. int k[]=new int[l.length];
  8.  
  9. long start_time = System.nanoTime ();
  10.  
  11. new CountingSort().CountSort(l, k, 101);
  12.  
  13. long execution_time = (System.nanoTime() - start_time);
  14. avg +=execution_time;
  15.  
  16. } System.out.println(avg / 2500);
  17. }
  18. }
Add Comment
Please, Sign In to add comment