Modifier and Type | Field and Description |
---|---|
protected long |
start |
protected long |
stop |
Constructor and Description |
---|
NanoStopwatch() |
Modifier and Type | Method and Description |
---|---|
void |
add(long value) |
protected long |
getCurrentTime() |
long |
getDuration() |
long |
getStart() |
long |
getStop() |
boolean |
isStarted() |
boolean |
isStopped() |
void |
reset() |
void |
set(long start,
long stop) |
void |
start() |
void |
stop() |
public long getDuration()
getDuration
in interface Stopwatch
protected long getCurrentTime()
Copyright © 2019. All Rights Reserved.