commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pste...@apache.org
Subject svn commit: r1102754 - /commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/ClientThread.java
Date Fri, 13 May 2011 14:22:48 GMT
Author: psteitz
Date: Fri May 13 14:22:48 2011
New Revision: 1102754

URL: http://svn.apache.org/viewvc?rev=1102754&view=rev
Log:
Convert ns fully to ms when recording latencies. 

Modified:
    commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/ClientThread.java

Modified: commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/ClientThread.java
URL: http://svn.apache.org/viewvc/commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/ClientThread.java?rev=1102754&r1=1102753&r2=1102754&view=diff
==============================================================================
--- commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/ClientThread.java
(original)
+++ commons/sandbox/performance/trunk/src/java/org/apache/commons/performance/ClientThread.java
Fri May 13 14:22:48 2011
@@ -176,7 +176,8 @@ public abstract class ClientThread imple
                 success = false;
             } finally {
                 try {
-                    responseStats.addValue((System.nanoTime() - start)/1000f);
+                    //TODO: Keep times in ns here, convert stats for ms reporting
+                    responseStats.addValue((System.nanoTime() - start)/1000f/1000f); 
                     successStats.addValue(success ? 1 : 0);
                     onTimeStats.addValue(onTime ? 1 : 0);
                     cleanUp();



Mime
View raw message