Examples of elapsedSeconds()


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

        SimSystem.report(Level.SEVERE, "Simulation creation failed!!!");
      }
      sw.stop();
      result.simulationCreation = sw.elapsedSeconds();
      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();
View Full Code Here

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

        }
      } else { // if we don't use a server we create a simlation on our own
        simulation.start();
      }
      sw.stop();
      result.simulationRun = sw.elapsedSeconds();
      println("Seconds needed for running the simulation: "
          + sw.elapsedSeconds());
      // simulation.stop();
    } catch (Exception e) {
      SimSystem.report(e);
View Full Code Here

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

        simulation.start();
      }
      sw.stop();
      result.simulationRun = sw.elapsedSeconds();
      println("Seconds needed for running the simulation: "
          + sw.elapsedSeconds());
      // simulation.stop();
    } catch (Exception e) {
      SimSystem.report(e);
      throw new RuntimeException(e.getMessage(), e);
    }
View Full Code Here

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

        }

      }

      sw.stop();
      println("Seconds needed for all experiments " + sw.elapsedSeconds());

    } catch (Exception e) {
      SimSystem.report(e);
    }
  }
View Full Code Here

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

        stopwatch.stop();

        if (measureTime) {
          out.println("Execution of the command " + command + " ("
              + commandLine + ") took " + stopwatch.elapsedSeconds()
              + " seconds");
        }

      }
    } // if at least one token
View Full Code Here

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

      sw.start();
      for (int i = 0; i < 100001; i++) {
        it.write("This is an additonal line " + i);
      }
      sw.stop();
      System.out.println(sw.elapsedSeconds());
      it.next();
      assertEquals(101, it.index());

    } catch (SQLException e) {
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.