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

Unified Diff: webrtc/system_wrappers/source/tick_util.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
Index: webrtc/system_wrappers/source/tick_util.cc
diff --git a/webrtc/system_wrappers/source/tick_util.cc b/webrtc/system_wrappers/source/tick_util.cc
deleted file mode 100644
index 0485e429211a114f48ebe6900a8c558850531f63..0000000000000000000000000000000000000000
--- a/webrtc/system_wrappers/source/tick_util.cc
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
- *
- * Use of this source code is governed by a BSD-style license
- * that can be found in the LICENSE file in the root of the source
- * tree. An additional intellectual property rights grant can be found
- * in the file PATENTS. All contributing project authors may
- * 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"
-
-namespace webrtc {
-
-int64_t TickTime::MillisecondTimestamp() {
- return TicksToMilliseconds(TickTime::Now().Ticks());
-}
-
-int64_t TickTime::MicrosecondTimestamp() {
- return TicksToMicroseconds(TickTime::Now().Ticks());
-}
-
-int64_t TickTime::MillisecondsToTicks(const int64_t ms) {
- return ms * rtc::kNumNanosecsPerMillisec;
-}
-
-int64_t TickTime::TicksToMilliseconds(const int64_t ticks) {
- return ticks / rtc::kNumNanosecsPerMillisec;
-}
-
-int64_t TickTime::TicksToMicroseconds(const int64_t ticks) {
- return ticks / rtc::kNumNanosecsPerMicrosec;
-}
-
-// Gets the native system tick count, converted to nanoseconds.
-int64_t TickTime::QueryOsForTicks() {
- return rtc::TimeNanos();
-}
-
-} // namespace webrtc
« no previous file with comments | « webrtc/system_wrappers/source/condition_variable_unittest.cc ('k') | webrtc/system_wrappers/system_wrappers.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698