OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project 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 "src/base/platform/time.h" | 5 #include "src/base/platform/time.h" |
6 | 6 |
7 #if V8_OS_POSIX | 7 #if V8_OS_POSIX |
8 #include <fcntl.h> // for O_RDONLY | 8 #include <fcntl.h> // for O_RDONLY |
9 #include <sys/time.h> | 9 #include <sys/time.h> |
| 10 #include <unistd.h> |
10 #endif | 11 #endif |
11 #if V8_OS_MACOSX | 12 #if V8_OS_MACOSX |
12 #include <mach/mach_time.h> | 13 #include <mach/mach_time.h> |
13 #endif | 14 #endif |
14 | 15 |
15 #include <string.h> | 16 #include <string.h> |
16 | 17 |
17 #if V8_OS_WIN | 18 #if V8_OS_WIN |
18 #include "src/base/lazy-instance.h" | 19 #include "src/base/lazy-instance.h" |
19 #include "src/base/win32-headers.h" | 20 #include "src/base/win32-headers.h" |
(...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
644 | 645 |
645 | 646 |
646 // static | 647 // static |
647 bool TimeTicks::KernelTimestampAvailable() { | 648 bool TimeTicks::KernelTimestampAvailable() { |
648 return kernel_tick_clock.Pointer()->Available(); | 649 return kernel_tick_clock.Pointer()->Available(); |
649 } | 650 } |
650 | 651 |
651 #endif // V8_OS_WIN | 652 #endif // V8_OS_WIN |
652 | 653 |
653 } } // namespace v8::base | 654 } } // namespace v8::base |
OLD | NEW |