You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by rm...@apache.org on 2013/08/01 13:56:42 UTC
svn commit: r1509183 -
/commons/sandbox/monitoring/trunk/core/src/main/java/org/apache/commons/monitoring/stopwatches/CounterStopWatch.java
Author: rmannibucau
Date: Thu Aug 1 11:56:41 2013
New Revision: 1509183
URL: http://svn.apache.org/r1509183
Log:
CounterStopWatch doesn't need a role, it is in the counter
Modified:
commons/sandbox/monitoring/trunk/core/src/main/java/org/apache/commons/monitoring/stopwatches/CounterStopWatch.java
Modified: commons/sandbox/monitoring/trunk/core/src/main/java/org/apache/commons/monitoring/stopwatches/CounterStopWatch.java
URL: http://svn.apache.org/viewvc/commons/sandbox/monitoring/trunk/core/src/main/java/org/apache/commons/monitoring/stopwatches/CounterStopWatch.java?rev=1509183&r1=1509182&r2=1509183&view=diff
==============================================================================
--- commons/sandbox/monitoring/trunk/core/src/main/java/org/apache/commons/monitoring/stopwatches/CounterStopWatch.java (original)
+++ commons/sandbox/monitoring/trunk/core/src/main/java/org/apache/commons/monitoring/stopwatches/CounterStopWatch.java Thu Aug 1 11:56:41 2013
@@ -17,7 +17,6 @@
package org.apache.commons.monitoring.stopwatches;
-import org.apache.commons.monitoring.Role;
import org.apache.commons.monitoring.counter.Counter;
import java.util.concurrent.atomic.AtomicInteger;
@@ -32,13 +31,11 @@ import static org.apache.commons.monitor
public class CounterStopWatch implements StopWatch {
protected final Counter counter;
protected final long startedAt;
- protected final Role role;
protected final AtomicInteger concurrencyCounter;
protected long stopedAt;
protected boolean stoped;
public CounterStopWatch(final Counter counter) {
- this.role = Role.PERFORMANCES;
this.counter = counter;
startedAt = nanotime();