OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/process/internal_linux.h" | 5 #include "base/process/internal_linux.h" |
6 | 6 |
7 #include <unistd.h> | 7 #include <unistd.h> |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/file_util.h" | 13 #include "base/files/file_util.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/strings/string_number_conversions.h" | 15 #include "base/strings/string_number_conversions.h" |
16 #include "base/strings/string_split.h" | 16 #include "base/strings/string_split.h" |
17 #include "base/strings/string_util.h" | 17 #include "base/strings/string_util.h" |
18 #include "base/threading/thread_restrictions.h" | 18 #include "base/threading/thread_restrictions.h" |
19 #include "base/time/time.h" | 19 #include "base/time/time.h" |
20 | 20 |
21 namespace base { | 21 namespace base { |
22 namespace internal { | 22 namespace internal { |
23 | 23 |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 // which means the answer is 100. | 180 // which means the answer is 100. |
181 // It may be the case that this value is always 100. | 181 // It may be the case that this value is always 100. |
182 static const int kHertz = sysconf(_SC_CLK_TCK); | 182 static const int kHertz = sysconf(_SC_CLK_TCK); |
183 | 183 |
184 return TimeDelta::FromMicroseconds( | 184 return TimeDelta::FromMicroseconds( |
185 Time::kMicrosecondsPerSecond * clock_ticks / kHertz); | 185 Time::kMicrosecondsPerSecond * clock_ticks / kHertz); |
186 } | 186 } |
187 | 187 |
188 } // namespace internal | 188 } // namespace internal |
189 } // namespace base | 189 } // namespace base |
OLD | NEW |