1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/common/media/webrtc_logging_message_data.h"
7 #include "base/strings/stringprintf.h"
9 WebRtcLoggingMessageData::WebRtcLoggingMessageData() {}
11 WebRtcLoggingMessageData::WebRtcLoggingMessageData(base::Time time
,
12 const std::string
& message
)
13 : timestamp(time
), message(message
) {}
16 WebRtcLoggingMessageData::Format(base::Time start_time
) const {
18 static_cast<int32
>((timestamp
- start_time
).InMilliseconds());
20 std::string result
= base::StringPrintf("[%03d:%03d] %s",