Merge "clock: buff our coverage numbers slightly." am: 72a955bf0f
Change-Id: Icd2139d60d16e0cb55052f9f35677a7b92b122e6
This commit is contained in:
commit
b300aea97b
1 changed files with 1 additions and 3 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue