Examples of printSeconds()


Examples of dclong.util.Timer.printSeconds()

  public static void main(String[] args) throws InterruptedException{
    Timer timer = new Timer();
    timer.start();
    Thread.sleep(1000);
    timer.stop();
    timer.printSeconds("sleeping");
  }
}
View Full Code Here

Examples of dclong.util.Timer.printSeconds()

      for(int j=cs2[0].length/2; j<cs2[0].length; ++j){
        cs2[i][j] = cs[cs.length-1-i][j-cs2[0].length/2];
      }
    }
    dclong.io.Console.print(cs2);
    timer.printSeconds("generating combinations");
  }
}
View Full Code Here

Examples of dclong.util.Timer.printSeconds()

      } 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++) {
        Math.pow(j, 8);
View Full Code Here

Examples of dclong.util.Timer.printSeconds()

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

Examples of dclong.util.Timer.printSeconds()

//      rng.nextPermutation(16, 8);
//      rng.nextGaussian(0, 1);
      rng.nextInt(0, 65779);
    }
    timer.stop();
    timer.printSeconds("generating random numbers");
  }
}
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.