Fix performance bug in CreateSendSideBweSimulationGraph

Bug: webrtc:10097
Change-Id: Ie60619084cd4bd47f5f81d06262ba62631eac12f
Reviewed-on: https://webrtc-review.googlesource.com/c/113423
Reviewed-by: Sebastian Jansson <srte@webrtc.org>
Commit-Queue: Björn Terelius <terelius@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#25916}
diff --git a/rtc_tools/event_log_visualizer/analyzer.cc b/rtc_tools/event_log_visualizer/analyzer.cc
index 8d346f0..567276c 100644
--- a/rtc_tools/event_log_visualizer/analyzer.cc
+++ b/rtc_tools/event_log_visualizer/analyzer.cc
@@ -1097,7 +1097,7 @@
       return static_cast<int64_t>(rtcp_iterator->log_time_us());
     return std::numeric_limits<int64_t>::max();
   };
-  int64_t next_process_time_us_ = clock.TimeInMicroseconds();
+  int64_t next_process_time_us_ = std::min({NextRtpTime(), NextRtcpTime()});
 
   auto NextProcessTime = [&]() {
     if (rtcp_iterator != incoming_rtcp.end() ||