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

Unified Diff: webrtc/voice_engine/monitor_module.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/video/vie_sync_module.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/voice_engine/monitor_module.cc
diff --git a/webrtc/voice_engine/monitor_module.cc b/webrtc/voice_engine/monitor_module.cc
index fb3c2b4920164c839cda7632d6e5fd52d91df08d..8a1865a95b4fc4334c020c047fda9b05d7fb03bc 100644
--- a/webrtc/voice_engine/monitor_module.cc
+++ b/webrtc/voice_engine/monitor_module.cc
@@ -8,7 +8,7 @@
* be found in the AUTHORS file in the root of the source tree.
*/
-#include "webrtc/system_wrappers/include/tick_util.h"
+#include "webrtc/base/timeutils.h"
#include "webrtc/voice_engine/monitor_module.h"
namespace webrtc {
@@ -17,7 +17,7 @@ namespace voe {
MonitorModule::MonitorModule() :
_observerPtr(NULL),
- _lastProcessTime(TickTime::MillisecondTimestamp())
+ _lastProcessTime(rtc::TimeMillis())
{
}
@@ -52,7 +52,7 @@ MonitorModule::DeRegisterObserver()
int64_t
MonitorModule::TimeUntilNextProcess()
{
- int64_t now = TickTime::MillisecondTimestamp();
+ int64_t now = rtc::TimeMillis();
const int64_t kAverageProcessUpdateTimeMs = 1000;
return kAverageProcessUpdateTimeMs - (now - _lastProcessTime);
}
@@ -60,7 +60,7 @@ MonitorModule::TimeUntilNextProcess()
void
MonitorModule::Process()
{
- _lastProcessTime = TickTime::MillisecondTimestamp();
+ _lastProcessTime = rtc::TimeMillis();
rtc::CritScope lock(&_callbackCritSect);
if (_observerPtr)
{
« no previous file with comments | « webrtc/video/vie_sync_module.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698