diff --git a/deps/chakrashim/include/libplatform/v8-tracing.h b/deps/chakrashim/include/libplatform/v8-tracing.h index ed29791fbdd..1a7cf16eb83 100644 --- a/deps/chakrashim/include/libplatform/v8-tracing.h +++ b/deps/chakrashim/include/libplatform/v8-tracing.h @@ -7,7 +7,9 @@ #include #include +#include #include + #include "v8-platform.h" namespace v8 { diff --git a/deps/chakrashim/include/v8-platform.h b/deps/chakrashim/include/v8-platform.h index 7dd3eba67b1..f0648e8bcd0 100644 --- a/deps/chakrashim/include/v8-platform.h +++ b/deps/chakrashim/include/v8-platform.h @@ -192,8 +192,9 @@ class Platform { protected: static double SystemClockTimeMillis() { - return std::chrono::duration_cast( - std::chrono::system_clock::now().time_since_epoch()).count(); + return std::chrono::duration_cast< + std::chrono::duration>( + std::chrono::system_clock::now().time_since_epoch()).count(); } };