Add support for visualizing event logs without normalizing time.

Bug: webrtc:9299
Change-Id: Icdc4cba14f143cedb7c35347dd9711ab13f975d8
Reviewed-on: https://webrtc-review.googlesource.com/77820
Commit-Queue: Stefan Holmer <stefan@webrtc.org>
Reviewed-by: Björn Terelius <terelius@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#23392}
diff --git a/rtc_tools/event_log_visualizer/analyzer.h b/rtc_tools/event_log_visualizer/analyzer.h
index 51ae015..d4a7fc3 100644
--- a/rtc_tools/event_log_visualizer/analyzer.h
+++ b/rtc_tools/event_log_visualizer/analyzer.h
@@ -31,7 +31,7 @@
   // The EventLogAnalyzer keeps a reference to the ParsedRtcEventLogNew for the
   // duration of its lifetime. The ParsedRtcEventLogNew must not be destroyed or
   // modified while the EventLogAnalyzer is being used.
-  explicit EventLogAnalyzer(const ParsedRtcEventLogNew& log);
+  EventLogAnalyzer(const ParsedRtcEventLogNew& log, bool normalize_time);
 
   void CreatePacketGraph(PacketDirection direction, Plot* plot);
 
@@ -151,7 +151,8 @@
     return name.str();
   }
 
-  float ToCallTime(int64_t timestamp) const;
+  int64_t ToCallTimeUs(int64_t timestamp) const;
+  float ToCallTimeSec(int64_t timestamp) const;
 
   void Alert_RtpLogTimeGap(PacketDirection direction,
                            float time_seconds,
@@ -231,6 +232,7 @@
   // First and last events of the log.
   int64_t begin_time_;
   int64_t end_time_;
+  const bool normalize_time_;
 
   // Duration (in seconds) of log file.
   float call_duration_s_;