Package dclong.util

Examples of dclong.util.Timer.end()


        pool.awaitTermination(1000, TimeUnit.SECONDS);
      } catch (InterruptedException e) {
        e.printStackTrace();
      }
    }
    timer.end();
    timer.printSeconds("generating random numbers in parallel");
    timer.begin();
    for (int i = 0; i < 10000; i++) {
//      rng.nextPermutation(2869, 330);
      for (int j = 0; j < 100000; j++) {
View Full Code Here


//      rng.nextPermutation(2869, 330);
      for (int j = 0; j < 100000; j++) {
        Math.pow(j, 8);
      }
    }
    timer.end();
    timer.printSeconds("generating random numbers in serial");
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.