Commit 6a8bdf37 authored by Simon Marlow's avatar Simon Marlow
Browse files

add a missing error check

parent 40dd50a9
......@@ -60,6 +60,9 @@ Time getProcessCPUTime(void)
res = clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &ts);
if (res == 0) {
return SecondsToTime(ts.tv_sec) + NSToTime(ts.tv_nsec);
} else {
sysErrorBelch("clock_gettime");
stg_exit(EXIT_FAILURE);
}
}
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment