Java Time Format formatElapsedTime(long elapsedTime)

Here you can find the source of formatElapsedTime(long elapsedTime)

Description

format Elapsed Time

License

Open Source License

Declaration

public static String formatElapsedTime(long elapsedTime) 

Method Source Code

//package com.java2s;
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt

public class Main {
    public static String formatElapsedTime(long elapsedTime) {
        return String
                .format("%d:%02d:%02d", elapsedTime / 3600, (elapsedTime % 3600) / 60, (elapsedTime % 60)); //$NON-NLS-1$
    }/*from w w  w.j av  a 2  s.  c  o m*/
}

Related

  1. formatDateTime(String s)
  2. formatDateTime(String value)
  3. formatDateTimeString(final String dateTimeString, final boolean wrapForCodeUsage)
  4. formatDelay(long startTime, long endTime)
  5. formatElapsedTime(int seconds)
  6. formatElapsedTime(long time)
  7. formatEndRowKeyString(String id, String timestampEnd)
  8. formatExecutionTime(long executionTime)
  9. formatExecutionTime(long ms)