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 "platform/time.h" | 5 #include "src/platform/time.h" |
6 | 6 |
7 #if V8_OS_POSIX | 7 #if V8_OS_POSIX |
8 #include <sys/time.h> | 8 #include <sys/time.h> |
9 #endif | 9 #endif |
10 #if V8_OS_MACOSX | 10 #if V8_OS_MACOSX |
11 #include <mach/mach_time.h> | 11 #include <mach/mach_time.h> |
12 #endif | 12 #endif |
13 | 13 |
14 #include <string.h> | 14 #include <string.h> |
15 | 15 |
16 #include "checks.h" | 16 #include "src/checks.h" |
17 #include "cpu.h" | 17 #include "src/cpu.h" |
18 #include "platform.h" | 18 #include "src/platform.h" |
19 #if V8_OS_WIN | 19 #if V8_OS_WIN |
20 #include "win32-headers.h" | 20 #include "src/win32-headers.h" |
21 #endif | 21 #endif |
22 | 22 |
23 namespace v8 { | 23 namespace v8 { |
24 namespace internal { | 24 namespace internal { |
25 | 25 |
26 TimeDelta TimeDelta::FromDays(int days) { | 26 TimeDelta TimeDelta::FromDays(int days) { |
27 return TimeDelta(days * Time::kMicrosecondsPerDay); | 27 return TimeDelta(days * Time::kMicrosecondsPerDay); |
28 } | 28 } |
29 | 29 |
30 | 30 |
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
559 | 559 |
560 | 560 |
561 // static | 561 // static |
562 bool TimeTicks::IsHighResolutionClockWorking() { | 562 bool TimeTicks::IsHighResolutionClockWorking() { |
563 return true; | 563 return true; |
564 } | 564 } |
565 | 565 |
566 #endif // V8_OS_WIN | 566 #endif // V8_OS_WIN |
567 | 567 |
568 } } // namespace v8::internal | 568 } } // namespace v8::internal |
OLD | NEW |