Replace std::chrono to mach_absolute_time/clock_gettime