|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Timer
Monitor type for tracking how much time something is taking.
Method Summary | |
---|---|
java.util.concurrent.TimeUnit |
getTimeUnit()
The time unit reported by this timer. |
void |
record(long duration)
Record a new value for this timer. |
void |
record(long duration,
java.util.concurrent.TimeUnit timeUnit)
Record a new value that was collected with the given TimeUnit. |
Stopwatch |
start()
Returns a stopwatch that has been started and will automatically record its result to this timer when stopped. |
Methods inherited from interface com.netflix.servo.monitor.Monitor |
---|
getConfig, getValue |
Method Detail |
---|
Stopwatch start()
java.util.concurrent.TimeUnit getTimeUnit()
void record(long duration)
void record(long duration, java.util.concurrent.TimeUnit timeUnit)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |