Java TimeUnit Calculate logTiming(String description, int n, long time, TimeUnit unit)

Here you can find the source of logTiming(String description, int n, long time, TimeUnit unit)

Description

log Timing

License

Apache License

Declaration

public static void logTiming(String description, int n, long time, TimeUnit unit) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.concurrent.TimeUnit;

public class Main {
    public static void logTiming(String description, int n, long time, TimeUnit unit) {
        System.out.format("%s = %,d %s (n = %,d)%n", description, time, unit.name().toLowerCase(), n);
    }/*from   w  w w.j  a v  a2 s  .c  o  m*/
}

Related

  1. getTimeUnitByName(String timeUnit, TimeUnit defaultTimeUnit)
  2. getValueString(long value, TimeUnit unit)
  3. getWindowFlooredBinaryTime(TimeUnit unit, long timestamp, int windowSizeInSeconds)
  4. humanReadableTime(long time, TimeUnit unit)
  5. isValidTimeUnit(String timeUnit)
  6. mapByName(TimeUnit... units)
  7. minus(Date date, int interval, TimeUnit unit)
  8. parseTimeUnit(final String unit)
  9. parseTimeUnit(Object property, TimeUnit defaultValue)