com.netflix.servo.monitor
Class TimedStopwatch

java.lang.Object
  extended by com.netflix.servo.monitor.BasicStopwatch
      extended by com.netflix.servo.monitor.TimedStopwatch
All Implemented Interfaces:
Stopwatch

public class TimedStopwatch
extends BasicStopwatch

Stopwatch that will also record to a timer.


Constructor Summary
TimedStopwatch(Timer timer)
          Create a new instance with the specified timer.
 
Method Summary
 void stop()
          Mark the end time.
 
Methods inherited from class com.netflix.servo.monitor.BasicStopwatch
getDuration, getDuration, reset, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimedStopwatch

public TimedStopwatch(Timer timer)
Create a new instance with the specified timer.

Method Detail

stop

public void stop()
Mark the end time.

Specified by:
stop in interface Stopwatch
Overrides:
stop in class BasicStopwatch