public class Timer extends Object
Constructor and Description |
---|
Timer() |
Modifier and Type | Method and Description |
---|---|
static String |
describeInterval(long interval)
Describe the interval in a human-readable way.
|
long |
elapsed() |
String |
elapsedDescription()
Describe the elapsed time in a human-readable way.
|
String |
elapsedDescription(boolean reportMsec)
Describe the elapsed time in a human-readable way.
|
void |
reset() |
public long elapsed()
public void reset()
public String elapsedDescription()
public String elapsedDescription(boolean reportMsec)
reportMsec
- if true, also reports millisecondspublic static String describeInterval(long interval)
interval
- time in msCopyright © 2020 Instituut voor Nederlandse Taal (INT). All rights reserved.