commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r901818 - /commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/TestConnectionPool.java
Date Thu, 21 Jan 2010 18:28:38 GMT
Author: sebb
Date: Thu Jan 21 18:28:38 2010
New Revision: 901818

URL: http://svn.apache.org/viewvc?rev=901818&view=rev
Log:
Drop use of nanoTime() now that testing is complete

Modified:
    commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/TestConnectionPool.java

Modified: commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/TestConnectionPool.java
URL: http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/TestConnectionPool.java?rev=901818&r1=901817&r2=901818&view=diff
==============================================================================
--- commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/TestConnectionPool.java (original)
+++ commons/proper/dbcp/trunk/src/test/org/apache/commons/dbcp/TestConnectionPool.java Thu
Jan 21 18:28:38 2010
@@ -789,7 +789,7 @@
                                     + ". Loops: " + pt.loops
                                     + ". State: " + pt.state
                                     + ". thrown: "+ pt.thrown
-                                    + ". (using nanoTime)"
+                                    + "."
                                     );
                         }                        
                     }
@@ -909,6 +909,6 @@
     }
 
     long timeStamp() {
-        return System.nanoTime() / 1000000;
+        return System.currentTimeMillis();// JVM 1.5+ System.nanoTime() / 1000000; 
     }
 }



Mime
View raw message