org.apache.commons.monitoring.stopwatches
Class CounterStopWatch
java.lang.Object
org.apache.commons.monitoring.stopwatches.CounterStopWatch
- All Implemented Interfaces:
- StopWatch
public class CounterStopWatch
- extends Object
- implements StopWatch
counter
protected final Counter counter
startedAt
protected final long startedAt
concurrencyCounter
protected final AtomicInteger concurrencyCounter
stopedAt
protected long stopedAt
stoped
protected boolean stoped
CounterStopWatch
public CounterStopWatch(Counter counter)
nanotime
protected long nanotime()
getElapsedTime
public long getElapsedTime()
- Specified by:
getElapsedTime
in interface StopWatch
stop
public StopWatch stop()
- Specified by:
stop
in interface StopWatch
doStop
protected void doStop()
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2008–2013 The Apache Software Foundation. All rights reserved.