Java Time Elapsed elapsedTimeStampSection(long n, String label, StringBuffer sb)

Here you can find the source of elapsedTimeStampSection(long n, String label, StringBuffer sb)

Description

put your documentation comment here

License

Open Source License

Parameter

Parameter Description
n a parameter
label a parameter
sb a parameter

Declaration

private static void elapsedTimeStampSection(long n, String label, StringBuffer sb) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    /**//from   www. j  ava2 s.com
     * put your documentation comment here
     * @param n
     * @param label
     * @param sb
     */
    private static void elapsedTimeStampSection(long n, String label, StringBuffer sb) {
        if (n > 0) {
            if (sb.length() > 0)
                sb.append(", ");
            sb.append(n);
            sb.append(' ');
            sb.append(label);
            if (n > 1)
                sb.append('s');
        }
    }
}

Related

  1. elapsedTime(long ms)
  2. elapsedTime(long startTime, long endTime, double units)
  3. elapsedTime(long timeInMs)
  4. elapsedTimeMs(long start)
  5. elapsedTimeStamp(long time)
  6. elapsedTimeString(long time)