Class HumanReadableTime
java.lang.Object
org.antublue.test.engine.internal.util.HumanReadableTime
Class to create a human-readable time from a duration
-
Method Summary
Modifier and TypeMethodDescriptionstatic Stringnow()Method to get the current time as a Stringstatic StringtoHumanReadable(long duration) Method to convert a duration into a human-readable timestatic StringtoHumanReadable(long duration, boolean useShortFormat) Method to convert a duration into a human-readable time
-
Method Details
-
toHumanReadable
Method to convert a duration into a human-readable time- Parameters:
duration- duration- Returns:
- the return value
-
toHumanReadable
Method to convert a duration into a human-readable time- Parameters:
duration- durationuseShortFormat- useShortFormat- Returns:
- the return value
-
now
Method to get the current time as a String- Returns:
- the return value
-