Class HumanReadableTime

java.lang.Object
org.antublue.test.engine.internal.util.HumanReadableTime

public final class HumanReadableTime extends Object
Class to create a human-readable time from a duration
  • Method Details

    • toHumanReadable

      public static String toHumanReadable(long duration)
      Method to convert a duration into a human-readable time
      Parameters:
      duration - duration
      Returns:
      the return value
    • toHumanReadable

      public static String toHumanReadable(long duration, boolean useShortFormat)
      Method to convert a duration into a human-readable time
      Parameters:
      duration - duration
      useShortFormat - useShortFormat
      Returns:
      the return value
    • now

      public static String now()
      Method to get the current time as a String
      Returns:
      the return value