OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2017 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 "webrtc/base/cpu_time.h" | 11 #include "webrtc/rtc_base/cpu_time.h" |
12 #include "webrtc/base/logging.h" | 12 #include "webrtc/rtc_base/logging.h" |
13 #include "webrtc/base/timeutils.h" | 13 #include "webrtc/rtc_base/timeutils.h" |
14 | 14 |
15 #if defined(WEBRTC_LINUX) | 15 #if defined(WEBRTC_LINUX) |
16 #include <time.h> | 16 #include <time.h> |
17 #elif defined(WEBRTC_MAC) | 17 #elif defined(WEBRTC_MAC) |
18 #include <sys/resource.h> | 18 #include <sys/resource.h> |
19 #include <sys/types.h> | 19 #include <sys/types.h> |
20 #include <sys/times.h> | 20 #include <sys/times.h> |
21 #include <mach/thread_info.h> | 21 #include <mach/thread_info.h> |
22 #include <mach/thread_act.h> | 22 #include <mach/thread_act.h> |
23 #include <mach/mach_init.h> | 23 #include <mach/mach_init.h> |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 } | 105 } |
106 #else | 106 #else |
107 // Not implemented yet. | 107 // Not implemented yet. |
108 static_assert( | 108 static_assert( |
109 false, "GetProcessCpuTimeNanos() platform support not yet implemented."); | 109 false, "GetProcessCpuTimeNanos() platform support not yet implemented."); |
110 #endif | 110 #endif |
111 return -1; | 111 return -1; |
112 } | 112 } |
113 | 113 |
114 } // namespace rtc | 114 } // namespace rtc |
OLD | NEW |