examples/charm++: Always use CkWallTimer, not CmiWallTimer (tested)
[charm.git] / examples / charm++ / AllReduce / bench / AllReduce.h
index c6070338e02a6c5a895159954bb749f816df966e..1ffbeb9fbde35981eadffd6cd4d564aa4f2038f2 100644 (file)
@@ -23,8 +23,8 @@ public:
          checkIn++;
          if (checkIn==units) {
                  checkIn = 0;
-                 // CkPrintf("All done in %lf seconds\n",(CmiWallTimer()-startTime));
-                 double newTime= CmiWallTimer();
+                 // CkPrintf("All done in %lf seconds\n",(CkWallTimer()-startTime));
+                 double newTime= CkWallTimer();
                  iterNo++;
                  timeForEach[sizeInd] += newTime-startTime;
                  if(iterNo==numItr)
@@ -39,7 +39,7 @@ public:
                          currentSize *= 2;
 
                  }
-                       startTime = CmiWallTimer();
+                       startTime = CkWallTimer();
                        arr.dowork(currentSize);
          }
   }