Examples of elapsedMilliseconds()


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

            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

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

            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

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

    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()
        + " generations simulated.");
  }
View Full Code Here

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

    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()
        + " generations simulated.");
  }

  /**
 
View Full Code Here

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

    gaps.portfolio(problemDescription);
    watch.stop();

    assertTrue(
        "ListOrAbortTest: no abortCriteria fulfilled.",
        MILLISECONDS < watch.elapsedMilliseconds()
            || GEN_COUNT == gaps.getGenerationCount()
            || gaps.getBestFitness() >= MAXIMIZE_FITNESS);
    SimSystem.report(
        Level.INFO,
        "ListOrAbortTest: Fitness " + gaps.getBestFitness() + " reached in "
View Full Code Here

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

            || gaps.getBestFitness() >= MAXIMIZE_FITNESS);
    SimSystem.report(
        Level.INFO,
        "ListOrAbortTest: Fitness " + gaps.getBestFitness() + " reached in "
            + gaps.getGenerationCount() + " generations in "
            + watch.elapsedMilliseconds() + " milliseconds.");
  }

  /**
   * Generates automatically a performances matrix.
   *
 
View Full Code Here

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

        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
    // used later on
    fakeResult = e;
View Full Code Here

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

        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
    fakeResult = Double.valueOf(l);
View Full Code Here

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

        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
    fakeResult = Double.valueOf(il);
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.