Package org.jamesii.core.util

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


    }
    StopWatch watch = new StopWatch();
    perfRecorder.start();
    watch.start();
    experiment.execute();
    watch.stop();
    perfRecorder.stop();
    elapsedTime = watch.elapsedSeconds();
    return elapsedTime;
  }
View Full Code Here


      BaseExperiment exp = new BaseExperiment();
      exp.getFixedModelParameters().putAll(parameterSetup);
      exp.setModelLocation(exploration.getExperiment().getModelLocation());
      exp.setDefaultSimStopTime(defaultSimStopTime);
      exp.execute();
      sw.stop();
      performances.add(sw.elapsedSeconds());
    }

    return new RealWorldSelectorPerformanceEntry(setup.getFirstValue(),
        performances, selGenFactoryName, predictedPerformance);
View Full Code Here

                new AdaptiveTaskRunnerFactory(), pb));

            StopWatch sw = new StopWatch();
            sw.start();
            be.execute();
            sw.stop();
            System.err.println("Execution Time:" + sw.elapsedMilliseconds());
            execTimes.add(sw.elapsedMilliseconds() / 1000.0);
            System.err.println("Execution Times:"
                + Strings.dispIterable(execTimes));
          }
View Full Code Here

        // Triangular
        q.enqueue(getObj(), 1.5 * Math.pow(rand, 0.5));
      }
    }

    sw.stop();
    System.out.println("Enqueing took " + sw.elapsedSeconds() + " seconds ");

    /*
     * System.out.println("The event queue (intially filled)");
     * q.print(System.out);
 
View Full Code Here

    gaps.setFitness(new SimpleFitness());
    gaps.setNumIndividuals(NUM_OF_IND);
    watch.start();
    gaps.setAbortCriterion(new WallClockTimeAbort(MILLISECONDS));
    gaps.portfolio(problemDescription);
    watch.stop();
    assertEquals(
        "Test should run " + MILLISECONDS + " but runs "
            + watch.elapsedMilliseconds() + ".", MILLISECONDS,
        watch.elapsedMilliseconds(), 1000);
    SimSystem.report(Level.INFO, "WallClockTest: " + gaps.getGenerationCount()
View Full Code Here

    watch.start();

    abortList.addCriterion(new WallClockTimeAbort(MILLISECONDS));
    gaps.setAbortCriterion(abortList);
    gaps.portfolio(problemDescription);
    watch.stop();

    assertTrue(
        "ListOrAbortTest: no abortCriteria fulfilled.",
        MILLISECONDS < watch.elapsedMilliseconds()
            || GEN_COUNT == gaps.getGenerationCount()
View Full Code Here

        e /= 3d;
        e += 4.4e100d;
        e *= e;
        e -= 2d;
      }
      sw.stop();
      // System.out.println(sw.elapsedSeconds());
    } while (sw.elapsedMilliseconds() < MINTIME);

    // just here to make sure that not all computations on the local variables
    // are deleted by a compiler detecting that the result computed will not be
View Full Code Here

        l /= 3l;
        l += 100987988798789l;
        l *= l;
        l -= 2l;
      }
      sw.stop();
    } while (sw.elapsedMilliseconds() < MINTIME);

    // just here to make sure that not all computations on the local variables
    // are deleted by a compiler detecting that the result computed will not be
    // used later on
View Full Code Here

        il /= 3;
        il += 10098;
        il *= il;
        il -= 2;
      }
      sw.stop();
    } while (sw.elapsedMilliseconds() < MINTIME);

    // just here to make sure that not all computations on the local variables
    // are deleted by a compiler detecting that the result computed will not be
    // used later on
View Full Code Here

      println("Memory (): " + Runtime.getRuntime().totalMemory() + " : "
          + Runtime.getRuntime().freeMemory());
      StopWatch sw = new StopWatch();
      sw.start();
      IModel model = createModel();
      sw.stop();
      result.modelCreation = sw.elapsedSeconds();
      println("Seconds needed for creating the model: " + sw.elapsedSeconds());
      println("Memory (model - [total:free]): "
          + Runtime.getRuntime().totalMemory() + " : "
          + Runtime.getRuntime().freeMemory());
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.