Package org.apache.uima.ducc.common.utils

Examples of org.apache.uima.ducc.common.utils.SynchronizedSimpleDateFormat


 
 
  public String getElapsed() {
    String elapsed = "";
    long elapsedTime = Long.valueOf(getDiff());
    SynchronizedSimpleDateFormat dateFormat = new SynchronizedSimpleDateFormat("HH:mm:ss");
    dateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
    elapsed = dateFormat.format(new Date(elapsedTime));
    return elapsed;
  }
View Full Code Here


        }
        long tmax = t1-t0;
        if(elapsed > tmax) {
          elapsed = t1 - getStartLong();
        }
        SynchronizedSimpleDateFormat dateFormat = new SynchronizedSimpleDateFormat("HH:mm:ss");
        dateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
        retVal = dateFormat.format(new Date(elapsed));
      //}
    }
    else {
      retVal = getElapsed();
    }
View Full Code Here

    DecimalFormat formatter = new DecimalFormat("##0.0");
    switch(sType) {
    case MR:
      break;
    default:
      SynchronizedSimpleDateFormat dateFormat = new SynchronizedSimpleDateFormat("HH:mm:ss");
      // Time:gc
      index++; // jp.12
      long timeGC = 0;
      try {
        timeGC = process.getGarbageCollectionStats().getCollectionTime();
      }
      catch(Exception e) {
      }
      dateFormat.setTimeZone(TimeZone.getTimeZone("UTC"));
      String displayGC = dateFormat.format(new Date(timeGC));
      displayGC = chomp("00:", displayGC);
      cbList[index].append("<td align=\"right\">");
      cbList[index].append(displayGC);
      cbList[index].append("</td>");
      // PgIn
View Full Code Here

TOP

Related Classes of org.apache.uima.ducc.common.utils.SynchronizedSimpleDateFormat

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.