diff options
| author | Ian Lynagh <igloo@earth.li> | 2007-09-10 13:35:28 +0000 |
|---|---|---|
| committer | Ian Lynagh <igloo@earth.li> | 2007-09-10 13:35:28 +0000 |
| commit | 60610640fdf2f9b037f2d323f3e1127849e76028 (patch) | |
| tree | a711e54a3ebd0c24b05560991b63a5c6a98fe31f /rts/posix/GetTime.c | |
| parent | b59ce959a2a107bbcf68245287e4ed508b2cb351 (diff) | |
| download | haskell-60610640fdf2f9b037f2d323f3e1127849e76028.tar.gz | |
Add a BeConservative setting to the make system
If it is set, we don't try to use clock_gettime
Diffstat (limited to 'rts/posix/GetTime.c')
| -rw-r--r-- | rts/posix/GetTime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/posix/GetTime.c b/rts/posix/GetTime.c index 626882b205..34fcd5c2a7 100644 --- a/rts/posix/GetTime.c +++ b/rts/posix/GetTime.c @@ -134,7 +134,7 @@ Ticks getThreadCPUTime(void) } return ((usec * TICKS_PER_SECOND) / 1000000); -#elif defined(HAVE_CLOCK_GETTIME) && defined (_POSIX_THREAD_CPUTIME) && defined(CLOCK_THREAD_CPUTIME_ID) && defined(HAVE_SYSCONF) +#elif !defined(BE_CONSERVATIVE) && defined(HAVE_CLOCK_GETTIME) && defined (_POSIX_THREAD_CPUTIME) && defined(CLOCK_THREAD_CPUTIME_ID) && defined(HAVE_SYSCONF) if (sysconf(_POSIX_THREAD_CPUTIME) != -1) { // clock_gettime() gives us per-thread CPU time. It isn't // reliable on Linux, but it's the best we have. |
