Class HumanReadableTimeSupport
java.lang.Object
org.antublue.test.engine.internal.support.HumanReadableTimeSupport
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 nanoseconds) Method to convert a duration into a human-readable timestatic StringtoHumanReadable(long nanoseconds, boolean useShortFormat) Method to convert a duration into a human-readable timestatic StringtoTimingUnit(long nanoseconds, String timingUnit) Method to convert nanoseconds to specific timing unit String
-
Method Details
-
toHumanReadable
Method to convert a duration into a human-readable time- Parameters:
nanoseconds- nanoseconds- Returns:
- the return value
-
toHumanReadable
Method to convert a duration into a human-readable time- Parameters:
nanoseconds- nanosecondsuseShortFormat- useShortFormat- Returns:
- the return value
-
now
Method to get the current time as a String- Returns:
- the return value
-
toTimingUnit
Method to convert nanoseconds to specific timing unit String- Parameters:
nanoseconds- nanosecondstimingUnit- timingUnit- Returns:
- a String representing the converted nanoseconds value
-