6 #include <sys/resource.h> 15 clock_gettime(CLOCK_MONOTONIC, &now);
16 return now.tv_sec * 1000000000L + now.tv_nsec;
23 getrusage(RUSAGE_SELF, &usage);
24 return (usage.ru_utime.tv_sec + usage.ru_stime.tv_sec) * 1000000000L + (usage.ru_utime.tv_usec + usage.ru_stime.tv_usec) * 1000L;
uint64_t get_process_time()