Skip to content

Commit

Permalink
No more kernel panics
Browse files Browse the repository at this point in the history
  • Loading branch information
msoos committed Jun 25, 2024
1 parent ddae4c3 commit f81fefc
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/time_mem.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,7 @@ static inline double cpuTimeTotal(void)
static inline double cpuTime(void)
{
struct rusage ru;
#ifdef RUSAGE_THREAD
int ret = getrusage(RUSAGE_THREAD, &ru);
#else
int ret = getrusage(RUSAGE_SELF, &ru);
#endif
assert(ret == 0);

return (double)ru.ru_utime.tv_sec + ((double)ru.ru_utime.tv_usec / 1000000.0);
Expand Down

0 comments on commit f81fefc

Please sign in to comment.