mahout-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gsing...@apache.org
Subject svn commit: r960605 - /mahout/trunk/core/src/main/java/org/apache/mahout/driver/MahoutDriver.java
Date Mon, 05 Jul 2010 14:19:22 GMT
Author: gsingers
Date: Mon Jul  5 14:19:22 2010
New Revision: 960605

URL: http://svn.apache.org/viewvc?rev=960605&view=rev
Log:
Print out the time it took to run

Modified:
    mahout/trunk/core/src/main/java/org/apache/mahout/driver/MahoutDriver.java

Modified: mahout/trunk/core/src/main/java/org/apache/mahout/driver/MahoutDriver.java
URL: http://svn.apache.org/viewvc/mahout/trunk/core/src/main/java/org/apache/mahout/driver/MahoutDriver.java?rev=960605&r1=960604&r2=960605&view=diff
==============================================================================
--- mahout/trunk/core/src/main/java/org/apache/mahout/driver/MahoutDriver.java (original)
+++ mahout/trunk/core/src/main/java/org/apache/mahout/driver/MahoutDriver.java Mon Jul  5
14:19:22 2010
@@ -171,7 +171,12 @@ public final class MahoutDriver {
         argsList.addAll(Arrays.asList(argMap.get(arg)));
       }
     }
+    long start = System.currentTimeMillis();
     programDriver.driver(argsList.toArray(new String[argsList.size()]));
+    long finish = System.currentTimeMillis();
+    if (log.isInfoEnabled()) {
+      log.info("Program took " + (finish - start) + " ms");
+    }
   }
 
   private static String[] shift(String[] args) {



Mime
View raw message