public class TimingUtil
extends java.lang.Object
Constructor and Description |
---|
TimingUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
elapsedTime(long start,
long end)
Calculate the elapsed time between two times specified in milliseconds.
|
static java.lang.String |
secondsToDaysHMS(long seconds)
Show time in seconds as days, hours, minutes and seconds (d days, hh:mm:ss)
|
static java.lang.String |
secondsToHMS(long seconds)
Show time in seconds as hours, minutes and seconds (hh:mm:ss)
|
public static java.lang.String elapsedTime(long start, long end)
start
- The start of the time periodend
- The end of the time periodpublic static java.lang.String secondsToHMS(long seconds)
seconds
- (elapsed) time in secondspublic static java.lang.String secondsToDaysHMS(long seconds)
seconds
- (elapsed) time in secondsCopyright © 2018 The Apache Software Foundation