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

Examples of org.apache.uima.ducc.common.utils.SynchronizedSimpleDateFormat.format()


  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;
  }
 
 
  public String getElapsed(IDuccWorkJob job) {
View Full Code Here


        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

        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
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.