diff --git a/src/base/platform/time.cc b/src/base/platform/time.cc index 09e3fd02dd..6695bf8e57 100644 --- a/src/base/platform/time.cc +++ b/src/base/platform/time.cc @@ -621,6 +621,8 @@ TimeTicks TimeTicks::HighResolutionNow() { ticks = (gethrtime() / Time::kNanosecondsPerMicrosecond); #elif V8_OS_POSIX ticks = ClockNow(CLOCK_MONOTONIC); +#else +#error platform does not implement TimeTicks::HighResolutionNow. #endif // V8_OS_MACOSX // Make sure we never return 0 here. return TimeTicks(ticks + 1);