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

Unified Diff: webrtc/base/timing.cc

Issue 2290203002: Delete Timing class, timing.h, and update all users. (Closed)
Patch Set: Fix copy-paste error in rtpdataengine.cc. Created 4 years, 3 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/base/timing.h ('k') | webrtc/media/base/rtpdataengine.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/timing.cc
diff --git a/webrtc/base/timing.cc b/webrtc/base/timing.cc
deleted file mode 100644
index 7fdcf6e933fe2b0754f1da1d5b11eaeb96b4a847..0000000000000000000000000000000000000000
--- a/webrtc/base/timing.cc
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Copyright 2008 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/base/timing.h"
-#include "webrtc/base/timeutils.h"
-
-#if defined(WEBRTC_POSIX)
-#include <errno.h>
-#include <math.h>
-#include <sys/time.h>
-#if defined(WEBRTC_MAC) && !defined(WEBRTC_IOS)
-#include <mach/mach.h>
-#include <mach/clock.h>
-#endif
-#elif defined(WEBRTC_WIN)
-#include <sys/timeb.h>
-#endif
-
-namespace rtc {
-
-Timing::Timing() {}
-
-Timing::~Timing() {}
-
-// static
-double Timing::WallTimeNow() {
-#if defined(WEBRTC_POSIX)
- struct timeval time;
- gettimeofday(&time, NULL);
- // Convert from second (1.0) and microsecond (1e-6).
- return (static_cast<double>(time.tv_sec) +
- static_cast<double>(time.tv_usec) * 1.0e-6);
-
-#elif defined(WEBRTC_WIN)
- struct _timeb time;
- _ftime(&time);
- // Convert from second (1.0) and milliseconds (1e-3).
- return (static_cast<double>(time.time) +
- static_cast<double>(time.millitm) * 1.0e-3);
-#endif
-}
-
-double Timing::TimerNow() {
- return (static_cast<double>(TimeNanos()) / kNumNanosecsPerSec);
-}
-
-} // namespace rtc
« no previous file with comments | « webrtc/base/timing.h ('k') | webrtc/media/base/rtpdataengine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698