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_BASE_PLATFORM_TIME_H_ | 5 #ifndef V8_BASE_PLATFORM_TIME_H_ |
6 #define V8_BASE_PLATFORM_TIME_H_ | 6 #define V8_BASE_PLATFORM_TIME_H_ |
7 | 7 |
8 #include <ctime> | 8 #include <ctime> |
9 #include <iosfwd> | 9 #include <iosfwd> |
10 #include <limits> | 10 #include <limits> |
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 explicit TimeTicks(int64_t ticks) : ticks_(ticks) {} | 391 explicit TimeTicks(int64_t ticks) : ticks_(ticks) {} |
392 | 392 |
393 // Tick count in microseconds. | 393 // Tick count in microseconds. |
394 int64_t ticks_; | 394 int64_t ticks_; |
395 }; | 395 }; |
396 | 396 |
397 inline TimeTicks operator+(const TimeDelta& delta, const TimeTicks& ticks) { | 397 inline TimeTicks operator+(const TimeDelta& delta, const TimeTicks& ticks) { |
398 return ticks + delta; | 398 return ticks + delta; |
399 } | 399 } |
400 | 400 |
401 } } // namespace v8::base | 401 } // namespace base |
| 402 } // namespace v8 |
402 | 403 |
403 #endif // V8_BASE_PLATFORM_TIME_H_ | 404 #endif // V8_BASE_PLATFORM_TIME_H_ |
OLD | NEW |