pulsar-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] merlimat commented on a change in pull request #898: E2e in perf-consumer
Date Thu, 01 Jan 1970 00:00:00 GMT
merlimat commented on a change in pull request #898: E2e in perf-consumer
URL: https://github.com/apache/incubator-pulsar/pull/898#discussion_r150306030
 
 

 ##########
 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());
+                recorder.recordValue(latencyMicros);
 
 Review comment:
   Since the precision is in millis, we could just record it in millis rather than micros.

----------------------------------------------------------------
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

Mime
View raw message