On RH66, timespec_get is not available. Use clock_gettime instead.
This problem was introduced with D87120
Reviewed By: tejohnson
Differential Revision: https://reviews.llvm.org/D91687
return 0;
}
timespec ts;
- timespec_get(&ts, TIME_UTC);
+ clock_gettime(CLOCK_REALTIME, &ts);
return (ts.tv_sec - memprof_init_timestamp_s) * 1000 + ts.tv_nsec / 1000000;
}
if (LIKELY(memprof_timestamp_inited))
return;
timespec ts;
- timespec_get(&ts, TIME_UTC);
+ clock_gettime(CLOCK_REALTIME, &ts);
memprof_init_timestamp_s = ts.tv_sec;
memprof_timestamp_inited = 1;
}