You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2017/11/10 18:28:42 UTC

[GitHub] merlimat commented on a change in pull request #898: E2e in perf-consumer

merlimat commented on a change in pull request #898: E2e in perf-consumer
URL: https://github.com/apache/incubator-pulsar/pull/898#discussion_r150304612
 
 

 ##########
 File path: pulsar-testclient/src/main/java/org/apache/pulsar/testclient/PerformanceConsumer.java
 ##########
 @@ -200,6 +203,9 @@ public void received(Consumer consumer, Message msg) {
                     limiter.acquire();
                 }
 
+                long latencyMicros = NANOSECONDS.toMicros(System.nanoTime() - msg.getPublishTime());
 
 Review comment:
   Publish time is in "millis". That is because `nanoTime()` is not an absolute timing source and cannot be used across different machines.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services