Index: src/base/platform/time.cc |
diff --git a/src/base/platform/time.cc b/src/base/platform/time.cc |
index b2355a33bde275695d13fe49ceb619ddf12911d5..0e4df010badc7bfd87d557e3824be5dd99b41414 100644 |
--- a/src/base/platform/time.cc |
+++ b/src/base/platform/time.cc |
@@ -41,9 +41,11 @@ int64_t ComputeThreadTicks() { |
CHECK(kr == KERN_SUCCESS); |
v8::base::CheckedNumeric<int64_t> absolute_micros( |
- thread_info_data.user_time.seconds); |
+ thread_info_data.user_time.seconds + |
+ thread_info_data.system_time.seconds); |
absolute_micros *= v8::base::Time::kMicrosecondsPerSecond; |
- absolute_micros += thread_info_data.user_time.microseconds; |
+ absolute_micros += (thread_info_data.user_time.microseconds + |
+ thread_info_data.system_time.microseconds); |
return absolute_micros.ValueOrDie(); |
} |
#elif V8_OS_POSIX |