Package org.jamesii.core.util

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


      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: "
        // + parameters.getMasterServerName());
View Full Code Here


          + 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) {
          retry = false;
View Full Code Here

            // 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

      results = new ArrayList<>();

      int counter = 0;

      sw.start();

      while (moreExperimentsToDo()) {

        println("@@@@@@@@@@@@@@@@ experiment (#" + ++counter
            + ") starting @@@@@@@@@@@@@@@@");
View Full Code Here

          }

        } // end of while

        stopwatch.start();

        // execute the command
        subCom.action.execute(param);

        stopwatch.stop();
View Full Code Here

      it.absolute(101);
      assertEquals(100, it.index());

      StopWatch sw = new StopWatch();
      sw.start();
      for (int i = 0; i < 100001; i++) {
        it.write("This is an additonal line " + i);
      }
      sw.stop();
      System.out.println(sw.elapsedSeconds());
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.