public class SimpleDurationFormat extends Object
| Constructor and Description |
|---|
SimpleDurationFormat(long startTimeMillis,
long endTimeMillis)
If end time is less than the start time, current epoch time is assumed as the end time.
|
| Modifier and Type | Method and Description |
|---|---|
String |
compact()
Return a compact representation of elapsed time with only the most significant time units and no spaces
|
String |
verbose()
Return a verbose representation of elapsed time down to millisecond granularity
|
Copyright © 2021 The Apache Software Foundation. All rights reserved.