Class SimpleDurationFormat
java.lang.Object
org.apache.drill.exec.server.rest.profile.SimpleDurationFormat
Representation of a millisecond duration in a human-readable format
-
Constructor Summary
ConstructorDescriptionSimpleDurationFormat
(long startTimeMillis, long endTimeMillis) If end time is less than the start time, current epoch time is assumed as the end time. -
Method Summary
-
Constructor Details
-
SimpleDurationFormat
public SimpleDurationFormat(long startTimeMillis, long endTimeMillis) If end time is less than the start time, current epoch time is assumed as the end time.- Parameters:
startTimeMillis
-endTimeMillis
-
-
-
Method Details
-
compact
Return a compact representation of elapsed time with only the most significant time units and no spaces- Returns:
- duration
-
verbose
Return a verbose representation of elapsed time down to millisecond granularity- Returns:
- duration
-