13 #include <sys/resource.h> 20 #include <CoreServices/CoreServices.h> 21 #include <mach/mach.h> 22 #include <mach/mach_time.h> 34 void print_elapsed(std::ostream &stream);
36 double elapsed_time();
37 double mach_time_to_sec(uint64_t elapsed);
49 struct timeval m_tv_start;
50 struct timeval m_tv_end;
53 uint64_t m_cycle_start;
58 uint64_t m_mach_start;
60 mach_timebase_info_data_t sTimebaseInfo;