|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netflix.servo.monitor.BasicStopwatch
public class BasicStopwatch
This class does not enforce starting or stopping once and only once without a reset.
| Constructor Summary | |
|---|---|
BasicStopwatch()
Create a new stopwatch with no associated timer. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicStopwatch()
| Method Detail |
|---|
public void start()
start in interface Stopwatchpublic void stop()
stop in interface Stopwatchpublic void reset()
reset in interface Stopwatchpublic long getDuration(java.util.concurrent.TimeUnit timeUnit)
getDuration in interface Stopwatchpublic long getDuration()
getDuration in interface Stopwatch
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||