Commit 5ed4b5ff authored by ehebrard's avatar ehebrard
Browse files

valgrind

parent c8b2c34d
#include "Global.hpp"
double schedcl::cpu_time(void) {
struct rusage ru;
getrusage(RUSAGE_SELF, &ru);
return (double)ru.ru_utime.tv_sec + (double)ru.ru_utime.tv_usec / 1000000;
}
Supports Markdown
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