--- lib/CL/pocl_timing.c.orig 2022-06-10 10:09:05 UTC +++ lib/CL/pocl_timing.c @@ -69,8 +69,8 @@ uint64_t pocl_gettimemono_ns() { struct timespec timespec; # ifdef CLOCK_MONOTONIC_RAW /* Linux */ clock_gettime(CLOCK_MONOTONIC_RAW, ×pec); -# elif defined(CLOCK_UPTIME_FAST) /* FreeBSD, DragonFlyBSD, etc */ - clock_gettime(CLOCK_UPTIME_FAST, ×pec); +# elif defined(CLOCK_MONOTONIC_FAST) /* FreeBSD, DragonFlyBSD, etc */ + clock_gettime(CLOCK_MONOTONIC_FAST, ×pec); # elif defined(CLOCK_MONOTONIC) /* POSIX 2008, NetBSD, etc */ clock_gettime(CLOCK_MONOTONIC, ×pec); # else /* older POSIX didn't define CLOCK_MONOTONIC */