Package com.vividsolutions.jts.util

Examples of com.vividsolutions.jts.util.Stopwatch


      for (int runNum = 0; runNum < runSize.length; runNum++)
      {
        int size = runSize[runNum];
        test.startRun(size);
        for (int i = 0; i < runMethod.length; i++) {
          Stopwatch sw = new Stopwatch();
          for (int iter = 0; iter < runIter; iter++) {
            runMethod[i].invoke(test);
          }
          System.out.println(runMethod[i].getName()
              + " : " + sw.getTimeString());
        }
        test.endRun();
      }
      test.tearDown();
    }
View Full Code Here


        + "      # lines: " + lines.size()
        + "   # pts in line: " + NUM_LINE_PTS
        );

    int maxCount = MAX_ITER;
    Stopwatch sw = new Stopwatch();
    int count = 0;
    for (int i = 0; i < MAX_ITER; i++) {
//      count = testPrepGeomNotCached(g, lines);
     count = testPrepGeomCached(g, lines);
//      count = testOriginal(g, lines);
    }
    System.out.println("Count of intersections = " + count);
    System.out.println("Finished in " + sw.getTimeString());
  }
View Full Code Here

    System.out.println("AOI # pts: " + g.getNumPoints()
        + "      # lines: " + lines.size()
        + "   # pts in line: " + NUM_LINE_PTS
        );

    Stopwatch sw = new Stopwatch();
    int count = 0;
    for (int i = 0; i < MAX_ITER; i++)
    {
   
     
//      count = testPrepGeomNotCached(g, lines);
     count = testPrepGeomCached(g, lines);
//      count = testOriginal(g, lines);
    
    
    }
    System.out.println("Count of intersections = " + count);
    System.out.println("Finished in " + sw.getTimeString());
  }
View Full Code Here

        GeometryFunction currentFunc = frame.getTestCasePanel().getSpatialFunctionPanel().getFunction();
        if (currentFunc == null)
          return null;
       
        try {
          timer = new Stopwatch();
          result = currentFunc.invoke(model.getGeometryEditModel().getGeometry(0),
              frame.getTestCasePanel().getSpatialFunctionPanel().getFunctionParams());
          timer.stop();
//          result = currentState.getActualValue();
        }
View Full Code Here

    // initialize UI view
    frame.getResultValuePanel().setResult(opName, "", null);
   
    frame.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
    Object result = frame.getTestCasePanel().getScalarFunctionPanel().getResult();
    Stopwatch timer = frame.getTestCasePanel().getScalarFunctionPanel().getTimer();
    frame.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
   
    frame.getResultValuePanel().setResult(opName, timer.getTimeString(), result);
    frame.showResultValueTab();
  }
View Full Code Here

TOP

Related Classes of com.vividsolutions.jts.util.Stopwatch

Copyright © 2018 www.massapicom. 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.