public class TimeMeasure extends Object
| Constructor and Description |
|---|
TimeMeasure() |
| Modifier and Type | Method and Description |
|---|---|
long |
getElapsed()
Returns the elapsed time in milliseconds.
|
long |
getElapsedAndReset() |
String |
getElapsedFormatted(DateFormat _dateFormat)
Formats the elapsed time using the given dateFormatter.
|
long |
getStartTime()
Returns the start time in milliseconds.
|
TimeMeasure |
reset()
Resets the start time to current time in milliseconds.
|
String |
toString()
Returns the elapsed time in milliseconds formatted as string.
|
public final TimeMeasure reset()
public long getStartTime()
public long getElapsed()
public String getElapsedFormatted(DateFormat _dateFormat)
_dateFormat - public long getElapsedAndReset()
Copyright © 2018. All rights reserved.