| 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 #ifndef V8_PLATFORM_TIME_H_ | 5 #ifndef V8_PLATFORM_TIME_H_ |
| 6 #define V8_PLATFORM_TIME_H_ | 6 #define V8_PLATFORM_TIME_H_ |
| 7 | 7 |
| 8 #include <time.h> | 8 #include <time.h> |
| 9 #include <limits> | 9 #include <limits> |
| 10 | 10 |
| 11 #include "../allocation.h" | 11 #include "src/allocation.h" |
| 12 | 12 |
| 13 // Forward declarations. | 13 // Forward declarations. |
| 14 extern "C" { | 14 extern "C" { |
| 15 struct _FILETIME; | 15 struct _FILETIME; |
| 16 struct mach_timespec; | 16 struct mach_timespec; |
| 17 struct timespec; | 17 struct timespec; |
| 18 struct timeval; | 18 struct timeval; |
| 19 } | 19 } |
| 20 | 20 |
| 21 namespace v8 { | 21 namespace v8 { |
| (...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 int64_t ticks_; | 384 int64_t ticks_; |
| 385 }; | 385 }; |
| 386 | 386 |
| 387 inline TimeTicks operator+(const TimeDelta& delta, const TimeTicks& ticks) { | 387 inline TimeTicks operator+(const TimeDelta& delta, const TimeTicks& ticks) { |
| 388 return ticks + delta; | 388 return ticks + delta; |
| 389 } | 389 } |
| 390 | 390 |
| 391 } } // namespace v8::internal | 391 } } // namespace v8::internal |
| 392 | 392 |
| 393 #endif // V8_PLATFORM_TIME_H_ | 393 #endif // V8_PLATFORM_TIME_H_ |
| OLD | NEW |