From: Noel Grandin Date: Wed, 21 May 2014 07:31:00 GMT Subject: Re: [RFC/PATCH v4 1/3] add high resolution timer function to debug performance issues Message-ID: <537C5634.3050807@peralex.com> In-Reply-To: <537BA8D1.1090503@gmail.com> On 2014-05-20 21:11, Karsten Blees wrote: > * implement Mac OSX version using mach_absolute_time > > Note that unlike the Windows and Linux APIs, mach_absolute_time does not do correction for frequency-scaling and cross-CPU synchronization with the TSC. I'm not aware of anything else that you could use on MacOS, so your best bet is probably just to use mach_absolute_time and document it's shortcomings. Regards, Noel. Disclaimer: http://www.peralex.com/disclaimer.html