This is related to #8658. mach_absolute_time will give us a monotonic clock on OS X. I'm not sure if this fits in to clock_gettime, so I've added a new function for getting the absolute time and another function for converting the absolute time to nanoseconds.
This is related to #8658. mach_absolute_time will give us a monotonic clock on OS X. I'm not sure if this fits in to clock_gettime, so I've added a new function for getting the absolute time and another function for converting the absolute time to nanoseconds.
I think that "I'm not sure if this fits in to clock_gettime" is
too weak reason to introduce new methods.
This is related to #8658. mach_absolute_time will give us a monotonic clock on OS X. I'm not sure if this fits in to clock_gettime, so I've added a new function for getting the absolute time and another function for converting the absolute time to nanoseconds.
I think that "I'm not sure if this fits in to clock_gettime" is
too weak reason to introduce new methods.
Sorry, I'm asking for help. I don't know how to fit it in with clock_gettime. Can you help me?
mach_absolute_time requires a conversion to obtain nanoseconds, but it
seems the other clocks do not.