summaryrefslogtreecommitdiff
path: root/lang/mono/files/patch-mono_mini_mini-posix.c
blob: 2af55c4f9822268376ef92f5857c35dcd7f707be (plain)
1
2
3
4
5
6
7
8
9
10
11
--- mono/mini/mini-posix.c.orig	2017-07-20 18:10:59 UTC
+++ mono/mini/mini-posix.c
@@ -588,7 +588,7 @@ clock_init (void)
 		 * makes very little sense as we can only use nanosleep () to sleep on
 		 * real time.
 		 */
-		sampling_posix_clock = CLOCK_PROCESS_CPUTIME_ID;
+		sampling_posix_clock = CLOCK_MONOTONIC;
 		break;
 #endif
 	case MONO_PROFILER_STAT_MODE_REAL: sampling_posix_clock = CLOCK_MONOTONIC; break;