21 #if defined HAVE_SYS_RESOURCE_H 22 #include <sys/resource.h> 30 return time_point (microseconds (get_run_time ()));
34 static std::chrono::microseconds
37 return (seconds (tv->tv_sec) + microseconds (tv->tv_usec));
48 getrusage (RUSAGE_SELF, &
rusage);
mach_port_t mach_port_t name mach_port_t mach_port_t name kern_return_t int int rusage_t rusage
std::chrono::time_point< system_cpu_time_clock > time_point
static std::chrono::microseconds timeval_to_microseconds(struct timeval *tv)
std::chrono::time_point< user_cpu_time_clock > time_point
std::chrono::time_point< run_time_clock > time_point
static time_point now() noexcept