public interface Stopwatch
Modifier and Type | Method and Description |
---|---|
long |
getDuration()
Returns the duration in nanoseconds.
|
long |
getDuration(java.util.concurrent.TimeUnit timeUnit)
Returns the duration in the specified time unit.
|
void |
reset()
Reset the stopwatch so that it can be used again.
|
void |
start()
Mark the start time.
|
void |
stop()
Mark the end time.
|
void start()
void stop()
void reset()
long getDuration(java.util.concurrent.TimeUnit timeUnit)
long getDuration()