lamber-ken commented on a change in pull request #1469:
URL: https://github.com/apache/incubator-hudi/pull/1469#discussion_r412988167



##########
File path: 
hudi-common/src/main/java/org/apache/hudi/common/util/HoodieTimer.java
##########
@@ -69,4 +76,13 @@ public long endTimer() {
     }
     return timeInfoDeque.pop().stop();
   }
+
+  public long deltaTime() {

Review comment:
       hi @nsivabalan, as follown, we need call `startTimer()` and `endTimer()`.
   ```
   // HoodieTimer 
   T0: HoodieTimer timer = new HoodieTimer(); timer.startTimer();
   T1: timer.endTimer(); timer.startTimer();
   T2: timer.endTimer(); timer.startTimer();
   T3: timer.endTimer(); timer.startTimer();  
   T4: timer.endTimer(); timer.startTimer();  
   
   // Delta
   T0: HoodieTimer timer = new HoodieTimer();
   T1: timer.deltaTime();
   T2: timer.deltaTime();
   T3: timer.deltaTime();
   T4: timer.deltaTime();
   ```
   




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to