jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1700123 - /jmeter/branches/SampleTimeout/src/components/org/apache/jmeter/timers/InterruptTimer.java
Date Sun, 30 Aug 2015 14:21:09 GMT
Author: sebb
Date: Sun Aug 30 14:21:08 2015
New Revision: 1700123

URL: http://svn.apache.org/r1700123
Log:
Show delay in seconds

Modified:
    jmeter/branches/SampleTimeout/src/components/org/apache/jmeter/timers/InterruptTimer.java

Modified: jmeter/branches/SampleTimeout/src/components/org/apache/jmeter/timers/InterruptTimer.java
URL: http://svn.apache.org/viewvc/jmeter/branches/SampleTimeout/src/components/org/apache/jmeter/timers/InterruptTimer.java?rev=1700123&r1=1700122&r2=1700123&view=diff
==============================================================================
--- jmeter/branches/SampleTimeout/src/components/org/apache/jmeter/timers/InterruptTimer.java
(original)
+++ jmeter/branches/SampleTimeout/src/components/org/apache/jmeter/timers/InterruptTimer.java
Sun Aug 30 14:21:08 2015
@@ -106,12 +106,12 @@ public class InterruptTimer extends Abst
             public void run() {
                 long start = System.nanoTime();
                 boolean interrupted = sampler.interrupt();
-                long end = System.nanoTime();
+                String elapsed = Double.toString((double)(System.nanoTime()-start)/ 1000000000)+"
secs";
                 if (interrupted) {
-                    LOG.warn("Done interrupting " + getInfo(samp) + " took(ns) " + (end-start));
+                    LOG.warn("Done interrupting " + getInfo(samp) + " took " + elapsed);
                 } else {
                     if (debug) {
-                        LOG.debug("Didn't interrupt: " + getInfo(samp) + " took(ns) " + (end-start));
+                        LOG.debug("Didn't interrupt: " + getInfo(samp) + " took " + elapsed);
                     }
                 }
             }
@@ -164,7 +164,7 @@ public class InterruptTimer extends Abst
             if (!future.isDone()) {
                 boolean cancelled = future.cancel(false);
                 if (debug) {
-                    LOG.debug("Cancelled the task: @" + System.identityHashCode(future) +
" with result " + cancelled);
+                    LOG.debug("Cancelled timer: @" + System.identityHashCode(future) + "
with result " + cancelled);
                 }
             }
             future = null;



Mime
View raw message