jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r1211915 - /jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/util/StopWatch.java
Date Thu, 08 Dec 2011 14:44:14 GMT
Author: thomasm
Date: Thu Dec  8 14:44:14 2011
New Revision: 1211915

URL: http://svn.apache.org/viewvc?rev=1211915&view=rev
Log:
StopWatch: display operation count

Modified:
    jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/util/StopWatch.java

Modified: jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/util/StopWatch.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/util/StopWatch.java?rev=1211915&r1=1211914&r2=1211915&view=diff
==============================================================================
--- jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/util/StopWatch.java
(original)
+++ jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/util/StopWatch.java
Thu Dec  8 14:44:14 2011
@@ -42,7 +42,7 @@ public class StopWatch {
             t = 1;
         }
         int ops = (int) (operations * NANOS_PER_SECOND / t);
-        return String.format("%.2f seconds (%d op/s)", s, ops);
+        return String.format("%.2f seconds (%d ops; %d op/s)", s, operations, ops);
     }
 
     /**



Mime
View raw message