OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/time.h" | 5 #include "base/time.h" |
6 | 6 |
7 #include <sys/time.h> | 7 #include <sys/time.h> |
8 #include <time.h> | 8 #include <time.h> |
9 | 9 |
10 #include <limits> | 10 #include <limits> |
11 | 11 |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 #else // _POSIX_MONOTONIC_CLOCK | 167 #else // _POSIX_MONOTONIC_CLOCK |
168 #error No usable tick clock function on this platform. | 168 #error No usable tick clock function on this platform. |
169 #endif // _POSIX_MONOTONIC_CLOCK | 169 #endif // _POSIX_MONOTONIC_CLOCK |
170 | 170 |
171 // static | 171 // static |
172 TimeTicks TimeTicks::HighResNow() { | 172 TimeTicks TimeTicks::HighResNow() { |
173 return Now(); | 173 return Now(); |
174 } | 174 } |
175 | 175 |
176 } // namespace base | 176 } // namespace base |
OLD | NEW |