Package org.jamesii.core.util

Examples of org.jamesii.core.util.StopWatch.reset()


          + Runtime.getRuntime().freeMemory());

      println("Simulation started at "
          + new SimpleDateFormat().format(new Date()));
      ISimulationRun simulation = null;
      sw.reset();
      sw.start();
      if (parameters.useMasterServer()) {
        // TODO master server deactivated, January, 2009 - model should be
        // created on the exec. host, not here!
        // System.out.println("The simulation will be executed on the server: "
View Full Code Here


      println("Seconds needed for creating the simulation: "
          + sw.elapsedSeconds());
      println("Memory (model + simulation - [total:free]): "
          + Runtime.getRuntime().totalMemory() + " : "
          + Runtime.getRuntime().freeMemory());
      sw.reset();
      sw.start();
      if (parameters.useMasterServer()) {
        int tries = 0;
        boolean retry = true;
        while (retry) {
View Full Code Here

                " - now retrying ... waiting some seconds ...");
            // parameters.findServer(name); refind the server????
            Thread.sleep(2000); // wait two seconds
            SimSystem.report(Level.INFO,
                "   resetting stopwatch ... restarting simulation ...");
            sw.reset();
            sw.start();
          }
        }
      } else { // if we don't use a server we create a simlation on our own
        simulation.start();
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.