diff --git a/VM/src/lperf.cpp b/VM/src/lperf.cpp index b7293c14..53293307 100644 --- a/VM/src/lperf.cpp +++ b/VM/src/lperf.cpp @@ -45,7 +45,7 @@ static double clock_timestamp() return double(result.QuadPart); #elif defined(__APPLE__) return double(mach_absolute_time()); -#elif defined(__linux__) +#elif defined(__linux__) || defined(__FreeBSD__) timespec now; clock_gettime(CLOCK_MONOTONIC, &now); return now.tv_sec * 1e9 + now.tv_nsec;