diff options
Diffstat (limited to 'logging/rtc_event_log/events/rtc_event_probe_cluster_created.h')
-rw-r--r-- | logging/rtc_event_log/events/rtc_event_probe_cluster_created.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/logging/rtc_event_log/events/rtc_event_probe_cluster_created.h b/logging/rtc_event_log/events/rtc_event_probe_cluster_created.h index f3221b91fd..974a0c9a5c 100644 --- a/logging/rtc_event_log/events/rtc_event_probe_cluster_created.h +++ b/logging/rtc_event_log/events/rtc_event_probe_cluster_created.h @@ -16,6 +16,7 @@ #include <memory> #include "api/rtc_event_log/rtc_event.h" +#include "api/units/timestamp.h" namespace webrtc { @@ -50,21 +51,21 @@ class RtcEventProbeClusterCreated final : public RtcEvent { struct LoggedBweProbeClusterCreatedEvent { LoggedBweProbeClusterCreatedEvent() = default; - LoggedBweProbeClusterCreatedEvent(int64_t timestamp_us, + LoggedBweProbeClusterCreatedEvent(Timestamp timestamp, int32_t id, int32_t bitrate_bps, uint32_t min_packets, uint32_t min_bytes) - : timestamp_us(timestamp_us), + : timestamp(timestamp), id(id), bitrate_bps(bitrate_bps), min_packets(min_packets), min_bytes(min_bytes) {} - int64_t log_time_us() const { return timestamp_us; } - int64_t log_time_ms() const { return timestamp_us / 1000; } + int64_t log_time_us() const { return timestamp.us(); } + int64_t log_time_ms() const { return timestamp.ms(); } - int64_t timestamp_us; + Timestamp timestamp = Timestamp::MinusInfinity(); int32_t id; int32_t bitrate_bps; uint32_t min_packets; |