Package org.apache.commons.lang.time

Examples of org.apache.commons.lang.time.StopWatch.reset()


      sites.add(s);
      siteGrid.insert(s);
    }
   
    System.out.println("  time grid: " + stopWatch);
    stopWatch.reset();
    stopWatch.start();
   
    /* approximate a polynomial at each site */

    Map<SiteWithPolynomial, List<SiteWithPolynomial>> nearestSiteMap
View Full Code Here


      nearestSiteMap.put(site, nearestSites);
     
    }
   
    System.out.println("  time nearest sites: " + stopWatch);
    stopWatch.reset();
    stopWatch.start();

    calculatePolynomials:
    for (SiteWithPolynomial site : sites) {
     
View Full Code Here

      site.setPolynomial(new DefaultPolynomial(coeffs));
     
    }

    System.out.println("  time polyonmials: " + stopWatch);
    stopWatch.reset();
    stopWatch.start();
   
  }
 
  @Override
View Full Code Here

      try {
             
        sites = eleData.getSites(mapData);
       
        System.out.println("time getSites: " + stopWatch);
        stopWatch.reset();
        stopWatch.start();
       
      } catch (IOException e) {
        e.printStackTrace();
      }
View Full Code Here

      }
     
      interpolator.setKnownSites(sites);
     
      System.out.println("time setKnownSites: " + stopWatch);
      stopWatch.reset();
      stopWatch.start();
     
    }
   
    /* interpolate connectors' elevations */
 
View Full Code Here

       
      }
    });
   
    System.out.println("time terrain interpolation: " + stopWatch);
    stopWatch.reset();
    stopWatch.start();
   
    /* enforce constraints defined by WorldObjects */
   
    boolean debugConstraints = config.getBoolean("debugConstraints", false);
View Full Code Here

      });
     
    }
   
    System.out.println("time add constraints: " + stopWatch);
    stopWatch.reset();
    stopWatch.start();
   
    enforcer.enforceConstraints();
   
    System.out.println("time enforce constraints: " + stopWatch);
View Full Code Here

    stopWatch.start();
   
    enforcer.enforceConstraints();
   
    System.out.println("time enforce constraints: " + stopWatch);
    stopWatch.reset();
    stopWatch.start();
   
  }
 
  public static enum Phase {
View Full Code Here

    Get get = null;
    Scan scan = null;
    ResultScanner rs = null;
    StopWatch stopWatch = new StopWatch();
    for (HColumnDescriptor column : tableDesc.getColumnFamilies()) {
      stopWatch.reset();
      startKey = region.getStartKey();
      // Can't do a get on empty start row so do a Scan of first element if any instead.
      if (startKey.length > 0) {
        get = new Get(startKey);
        get.addFamily(column.getName());
View Full Code Here

      byte[] startKey = null;
      Scan scan = null;
      StopWatch stopWatch = new StopWatch();
      // monitor one region on every region server
      for (Map.Entry<String, List<HRegionInfo>> entry : rsAndRMap.entrySet()) {
        stopWatch.reset();
        serverName = entry.getKey();
        // always get the first region
        region = entry.getValue().get(0);
        try {
          tableName = region.getTable().getNameAsString();
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.