Send *Statistics and Timestamp messages from SimulatedMessageBridge
This makes the simulation environment much closer to reality.
Change-Id: Ie0f44c17d9c9a750363335def1b008cef8c809b0
diff --git a/aos/events/ping_lib.cc b/aos/events/ping_lib.cc
index 9bc2446..7a0bfec 100644
--- a/aos/events/ping_lib.cc
+++ b/aos/events/ping_lib.cc
@@ -49,14 +49,14 @@
const chrono::nanoseconds round_trip_time =
monotonic_now - monotonic_send_time;
- if (last_pong_value_ + 1 != pong.value()) {
+ if (last_pong_value_ + 1 != pong.value() && (!quiet_ || VLOG_IS_ON(1))) {
LOG(WARNING) << "Pong message lost";
}
if (pong.value() == count_) {
VLOG(1) << "Elapsed time " << round_trip_time.count() << " ns "
<< FlatbufferToJson(&pong);
- } else {
+ } else if (!quiet_ || VLOG_IS_ON(1)) {
LOG(WARNING) << "Missmatched pong message, got " << FlatbufferToJson(&pong)
<< " expected " << count_;
}