blob: 2c307fffca44f0543bafd2b573814e51499d6edd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
--- lib/CL/pocl_timing.c.orig 2025-05-21 11:53:16 UTC
+++ lib/CL/pocl_timing.c
@@ -74,8 +74,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 */
|