Project

General

Profile

clock.diff

Patrick Welche, 05/31/2016 04:21 PM

View differences:

src/gromacs/timing/walltime_accounting.cpp
193 193
double
194 194
gmx_gettime()
195 195
{
196
#if HAVE_CLOCK_GETTIME && _POSIX_TIMERS >= 0 && !(defined __bgq__ && defined __clang__)
196
#if HAVE_CLOCK_GETTIME && defined(CLOCK_REALTIME)
197 197
    /* Mac and Windows do not support this. For added fun, Windows
198 198
     * defines _POSIX_TIMERS without actually providing the
199 199
     * implementation. The BlueGene/Q CNK only supports gettimeofday,
......
229 229
static double
230 230
gmx_gettime_per_thread()
231 231
{
232
#if HAVE_CLOCK_GETTIME && _POSIX_THREAD_CPUTIME >= 0
232
#if HAVE_CLOCK_GETTIME && defined(CLOCK_THREAD_CPUTIME_ID)
233 233
    struct timespec t;
234 234
    double          seconds;
235 235