Index: src/base/platform/time.cc |
diff --git a/src/base/platform/time.cc b/src/base/platform/time.cc |
index 40dd188db362c2b2d2018c6892a1b5b9fa378f80..6734218e5071a94180cfa007569100407589a6c3 100644 |
--- a/src/base/platform/time.cc |
+++ b/src/base/platform/time.cc |
@@ -13,7 +13,8 @@ |
#include <mach/mach_time.h> |
#endif |
-#include <string.h> |
+#include <cstring> |
+#include <ostream> |
#if V8_OS_WIN |
#include "src/base/lazy-instance.h" |
@@ -355,6 +356,11 @@ double Time::ToJsTime() const { |
} |
+std::ostream& operator<<(std::ostream& os, const Time& time) { |
+ return os << time.ToJsTime(); |
+} |
+ |
+ |
#if V8_OS_WIN |
class TickClock { |