public class StopWatch extends Object
| Constructor and Description |
|---|
StopWatch() |
| Modifier and Type | Method and Description |
|---|---|
void |
end()
End time.
|
void |
end(long nanoTime,
long currentTimeMillis)
End time.
|
long |
getDurationNanoSec()
Get nano-second of duration.
|
String |
getDurationString()
Get human readable duration string.
|
long |
getEndTimeOfUTC()
Get end time of UTC as milli second.
|
long |
getStartTimeOfUTC()
Get start time of UTC as milli second.
|
void |
start()
Start time.
|
void |
start(long nanoTime,
long currentTimeMillis)
Start time.
|
public void start()
public void start(long nanoTime,
long currentTimeMillis)
nanoTime - System.nanoTime()currentTimeMillis - System.currentTimeMillis()public void end()
public void end(long nanoTime,
long currentTimeMillis)
nanoTime - System.nanoTime()currentTimeMillis - System.currentTimeMillis()public long getStartTimeOfUTC()
public long getEndTimeOfUTC()
public long getDurationNanoSec()
public String getDurationString()
Copyright © 2014. All rights reserved.