incubator-hama-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From edwardy...@apache.org
Subject svn commit: r1050275 - in /incubator/hama/trunk: CHANGES.txt src/examples/org/apache/hama/examples/PiEstimator.java
Date Fri, 17 Dec 2010 05:30:38 GMT
Author: edwardyoon
Date: Fri Dec 17 05:30:38 2010
New Revision: 1050275

URL: http://svn.apache.org/viewvc?rev=1050275&view=rev
Log:
Add execution time calculator to Pi job

Modified:
    incubator/hama/trunk/CHANGES.txt
    incubator/hama/trunk/src/examples/org/apache/hama/examples/PiEstimator.java

Modified: incubator/hama/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/hama/trunk/CHANGES.txt?rev=1050275&r1=1050274&r2=1050275&view=diff
==============================================================================
--- incubator/hama/trunk/CHANGES.txt (original)
+++ incubator/hama/trunk/CHANGES.txt Fri Dec 17 05:30:38 2010
@@ -192,6 +192,7 @@ Trunk (unreleased changes)
 
   BUG FIXES
   
+    HAMA-345: Add execution time calculator to Pi job (edwardyoon)
     HAMA-344: Task successfully finished but system re-attempt (edwardyoon)
     HAMA-343: Fix Maven test fails (Tommaso Teofili via edwardyoon)
     HAMA-338: Username and Job-manager states are not collectly displayed (edwardyoon)

Modified: incubator/hama/trunk/src/examples/org/apache/hama/examples/PiEstimator.java
URL: http://svn.apache.org/viewvc/incubator/hama/trunk/src/examples/org/apache/hama/examples/PiEstimator.java?rev=1050275&r1=1050274&r2=1050275&view=diff
==============================================================================
--- incubator/hama/trunk/src/examples/org/apache/hama/examples/PiEstimator.java (original)
+++ incubator/hama/trunk/src/examples/org/apache/hama/examples/PiEstimator.java Fri Dec 17
05:30:38 2010
@@ -116,6 +116,9 @@ public class PiEstimator {
       break;
     }
 
+    long startTime = System.currentTimeMillis();
     BSPJobClient.runJob(bsp);
+    System.out.println("Job Finished in "+
+        (double)(System.currentTimeMillis() - startTime)/1000.0 + " seconds");
   }
 }



Mime
View raw message