summaryrefslogtreecommitdiff
path: root/devel/concurrentqueue/files/patch-tests_common_systemtime.cpp
blob: b5860853ce10af78b0870fbe9cdd84a17e630196 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- tests/common/systemtime.cpp.orig	2023-06-28 01:31:14 UTC
+++ tests/common/systemtime.cpp
@@ -118,7 +118,7 @@ SystemTime getSystemTime()
 {
 	timespec t;
 	CompilerMemBar();
-	if (clock_gettime(CLOCK_MONOTONIC_RAW, &t) != 0) {
+	if (clock_gettime(CLOCK_MONOTONIC, &t) != 0) {
 		t.tv_sec = (time_t)-1;
 		t.tv_nsec = -1;
 	}
@@ -131,7 +131,7 @@ double getTimeDelta(SystemTime start)
 {
 	timespec t;
 	CompilerMemBar();
-	if ((start.tv_sec == (time_t)-1 && start.tv_nsec == -1) || clock_gettime(CLOCK_MONOTONIC_RAW, &t) != 0) {
+	if ((start.tv_sec == (time_t)-1 && start.tv_nsec == -1) || clock_gettime(CLOCK_MONOTONIC, &t) != 0) {
 		return -1;
 	}
 	CompilerMemBar();