Merge "clock: buff our coverage numbers slightly." am: 72a955bf0f

Change-Id: Icd2139d60d16e0cb55052f9f35677a7b92b122e6
This commit is contained in:
Treehugger Robot 2020-05-30 00:30:17 +00:00 committed by Automerger Merge Worker
commit b300aea97b

View file

@ -35,8 +35,6 @@
// http://pubs.opengroup.org/onlinepubs/9699919799/functions/clock.html
clock_t clock() {
timespec ts;
if (clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &ts) == -1) {
return -1;
}
clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &ts);
return (ts.tv_sec * CLOCKS_PER_SEC) + (ts.tv_nsec / (NS_PER_S / CLOCKS_PER_SEC));
}