Examples of Timer


Examples of org.mindswap.pellet.utils.Timer

    }
    */
   
    /* Classify the ontology if necessary */
    if (!reasoner.isClassified()){
      Timer timerClassify = timers.startTimer( "classification" );
      reasoner.classify();
      timerClassify.stop();
      classificationTime = timerClassify.getTotal();
    }
   
    /* Maps each class to the number of instances (including direct and indirect) */
    HashMap<OWLClass, Integer> counts = new HashMap<OWLClass, Integer>();
   
    /* Maps each class to the number of direct instances */
    HashMap<OWLClass, Integer> directIndividualsCounts = new HashMap<OWLClass, Integer>();
   
    /* Maps each class to the number of indirect instances */
    HashMap<OWLClass, Integer> indirectIndividualsCounts = new HashMap<OWLClass, Integer>();   
   
    int cumulativeNumberOfInstances = 0;
    int cumulativeNumberOfDirectInstances = 0;
    int cumulativeNumberOfIndirectInstances = 0;
    double instanceRetrievalTime = 0;
   
    for (OWLClass cc : classes){
      allIndividuals = new HashSet<OWLIndividual>();
      directIndividuals = new HashSet<OWLIndividual>();
      timers.createTimer("retrieval");
     
      System.out.println(reasoner.getEquivalentClasses(cc).size());
     
      /* retrieve all individuals of the class (direct and indirect individuals) */
      Timer timerRetrieval = timers.startTimer( "retrieval" );
      allIndividuals = reasoner.getIndividuals(cc, false);
      timerRetrieval.stop();
     
      /* update instance retrieval time */
      instanceRetrievalTime += timerRetrieval.getTotal();
     
      /* retrieve all direct instances of the class */
      directIndividuals = reasoner.getIndividuals(cc, true);   
     
      /* set the number of instances (direct + indirect) of the class */
 
View Full Code Here

Examples of org.mockito.internal.util.Timer

    public VerificationOverTimeImpl(long pollingPeriodMillis, long durationMillis, VerificationMode delegate, boolean returnOnSuccess) {
        this.pollingPeriodMillis = pollingPeriodMillis;
        this.durationMillis = durationMillis;
        this.delegate = delegate;
        this.returnOnSuccess = returnOnSuccess;
        this.timer = new Timer(durationMillis);
    }
View Full Code Here

Examples of org.ocpsoft.rewrite.util.Timer

   }

   @Test
   public void testCachingConfigurationPerformance()
   {
      Timer timer = Timer.getTimer().start();

      int MAX = 5;
      for (int i = 0; i < MAX; i++) {
         new Thread(request).start();
      }

      while (votes < MAX)
      {
         try {
            Thread.sleep(10);
            if (configBuildCount > 1)
            {
               Assert.fail();
            }
         }
         catch (InterruptedException e) {}
      }

      timer.stop();
      long elapsedMilliseconds = timer.getElapsedMilliseconds();
      System.out.println(elapsedMilliseconds + "ms for " + MAX + " requests");
   }
View Full Code Here

Examples of org.powerbot.game.api.util.Timer

        startXp = Skills.getExperience(Skills.RUNECRAFTING);
        startLvl = Skills.getRealLevel(Skills.RUNECRAFTING);
        startPoints = Integer.parseInt(Widgets.get(1274, 2).getText());
        gainedPoints = 0;

        timer = new Timer(0);
        mouseTrail = new MouseTrail();
        window = new FloatingWindow();
    }
View Full Code Here

Examples of org.python.pydev.core.performanceeval.Timer

    public void testOnWxPython() throws Throwable {
        if (TestDependent.PYTHON_WXPYTHON_PACKAGES != null) {
            boolean recursive = STRESS_TEST;
            File file = new File(TestDependent.PYTHON_WXPYTHON_PACKAGES, "wxPython");
            Timer timer = new Timer();

            parseFilesInDir(file, recursive, false); //Don't generate ast
            timer.printDiff("Time to generate without AST");

            parseFilesInDir(file, recursive, true);
            timer.printDiff("Time to generate with AST");

            file = new File(TestDependent.PYTHON_WXPYTHON_PACKAGES, "wx");
            parseFilesInDir(file, recursive, false); //Don't generate ast
            timer.printDiff("Time to generate without AST");

            parseFilesInDir(file, recursive, true);
            timer.printDiff("Time to generate with AST");
        }
    }
View Full Code Here

Examples of org.qagile.support.Timer

  }

  public void click(String newpageTitle) {
    // This method will take newPageTitleAsParameterToMakeSure Page is loaded
    link.click();
    new Timer(5000).waitUntil(new PageTitleAppearsCondition(newpageTitle));
  }
View Full Code Here

Examples of org.rascalmpl.library.vis.figure.interaction.Timer

    case TEXTFIELD:
      validate = null;
      if(c.arity() >= 3) validate = c.get(2);
      return new TextField(env,  ((IString) c.get(0)).getValue(), c.get(1), validate, properties);
    case TIMER:
      return new Timer(env, c.get(0), c.get(1), makeChild(2,env,c,properties,childPropsNext), properties );
     
    case TREE:      
      children = makeList(env,c.get(0),properties,childPropsNext);
      return new Tree(Dimension.Y, children, properties);
     
View Full Code Here

Examples of org.rsbot.script.util.Timer

            } else {
              direction = random(0, 2);
            }
            final RSComponent arrow = solver.getComponent(ARROWS[i][direction]);
            while (container.isValid() && target.isValid() && arrow.isValid() &&
                !container.getArea().contains(target.getCenter()) && new Timer(10000).isRunning()) {
              if (arrow.doClick()) {
                sleep(random(800, 1200));
              }
            }
          }
View Full Code Here

Examples of org.semanticweb.HermiT.monitor.Timer

        switch (config.tableauMonitorType) {
        case NONE:
            wellKnownTableauMonitor=null;
            break;
        case TIMING:
            wellKnownTableauMonitor=new Timer();
            break;
        case TIMING_WITH_PAUSE:
            wellKnownTableauMonitor=new TimerWithPause();
            break;
        case DEBUGGER_HISTORY_ON:
View Full Code Here

Examples of org.snu.ids.ha.util.Timer

   
    System.setProperty("DO_DEBUG", "DO_DEBUG");
    try {
      MorphemeAnalyzer ma = new MorphemeAnalyzer();
      ma.createLogger(null);
      Timer timer = new Timer();
      timer.start();
      List<MExpression> ret = ma.analyze(string);
      timer.stop();
      timer.printMsg("Time");

      ret = ma.postProcess(ret);

      ret = ma.leaveJustBest(ret);
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.