Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Unified Diff: webrtc/modules/audio_coding/test/Channel.cc

Issue 1888593004: Delete all use of tick_util.h. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase. Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/modules/audio_coding/test/APITest.cc ('k') | webrtc/modules/audio_coding/test/iSACTest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/audio_coding/test/Channel.cc
diff --git a/webrtc/modules/audio_coding/test/Channel.cc b/webrtc/modules/audio_coding/test/Channel.cc
index 0507691fb4dcdbb8ef31d2bf21376ec4c684c8ea..46c398b1b758617f05305bd19e5d92b392f82573 100644
--- a/webrtc/modules/audio_coding/test/Channel.cc
+++ b/webrtc/modules/audio_coding/test/Channel.cc
@@ -14,7 +14,7 @@
#include <iostream>
#include "webrtc/base/format_macros.h"
-#include "webrtc/system_wrappers/include/tick_util.h"
+#include "webrtc/base/timeutils.h"
namespace webrtc {
@@ -234,7 +234,7 @@ Channel::Channel(int16_t chID)
_lastFrameSizeSample(0),
_packetLoss(0),
_useFECTestWithPacketLoss(false),
- _beginTime(TickTime::MillisecondTimestamp()),
+ _beginTime(rtc::TimeMillis()),
_totalBytes(0),
external_send_timestamp_(-1),
external_sequence_number_(-1),
@@ -286,7 +286,7 @@ void Channel::ResetStats() {
_payloadStats[n].frameSizeStats[k].totalEncodedSamples = 0;
}
}
- _beginTime = TickTime::MillisecondTimestamp();
+ _beginTime = rtc::TimeMillis();
_totalBytes = 0;
_channelCritSect.Leave();
}
@@ -411,7 +411,7 @@ uint32_t Channel::LastInTimestamp() {
double Channel::BitRate() {
double rate;
- uint64_t currTime = TickTime::MillisecondTimestamp();
+ uint64_t currTime = rtc::TimeMillis();
_channelCritSect.Enter();
rate = ((double) _totalBytes * 8.0) / (double) (currTime - _beginTime);
_channelCritSect.Leave();
« no previous file with comments | « webrtc/modules/audio_coding/test/APITest.cc ('k') | webrtc/modules/audio_coding/test/iSACTest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698