On 5/19/22 22:27, Fons Adriaensen wrote:
Don't know about Apple. Last time I looked it
didn't have clock_gettime(),
While there is a corresponding mach/clock.h, for the case at hand it is
preferable to use Apple's Core Audio, CoreMIDI. MIDI Event scheduling is
abstracted, and there is dedicated API to convert timestamped events
with high precision:
AudioConvertNanosToHostTime() and AudioConvertHostTimeToNanos()
--
robin