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

Side by Side Diff: webrtc/base/timing.cc

Issue 1528503003: Lint enabled for webrtc/modules/video_coding folder. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright 2008 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2008 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #include <algorithm>
mflodman 2015/12/17 13:05:39 What is this used for here?
philipel 2015/12/18 12:23:16 Removed
12
11 #include "webrtc/base/timing.h" 13 #include "webrtc/base/timing.h"
12 #include "webrtc/base/timeutils.h" 14 #include "webrtc/base/timeutils.h"
13 15
14 #if defined(WEBRTC_POSIX) 16 #if defined(WEBRTC_POSIX)
15 #include <errno.h> 17 #include <errno.h>
16 #include <math.h> 18 #include <math.h>
17 #include <sys/time.h> 19 #include <sys/time.h>
18 #if defined(WEBRTC_MAC) && !defined(WEBRTC_IOS) 20 #if defined(WEBRTC_MAC) && !defined(WEBRTC_IOS)
19 #include <mach/mach.h> 21 #include <mach/mach.h>
20 #include <mach/clock.h> 22 #include <mach/clock.h>
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 // Still attempts to sleep with lesser resolution. 106 // Still attempts to sleep with lesser resolution.
105 // The unit is in milliseconds. 107 // The unit is in milliseconds.
106 Sleep(DWORD(period * 1.0e3)); 108 Sleep(DWORD(period * 1.0e3));
107 } 109 }
108 #endif 110 #endif
109 111
110 return TimerNow() - start_time; 112 return TimerNow() - start_time;
111 } 113 }
112 114
113 } // namespace rtc 115 } // namespace rtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698