[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-dev] TempoClock-sched broken?



> It seems AudioGetCurrentHostTime() uses mach_absolute_time()
> internally. Not sure what the differences are compared to
> gettimeofday().

according to [1] it has a higher resolution (gettimeofday only provides
microsecond resolution) and is monotonic ... being monotonic means that
it has to be synchronized with the system clock ...

tim

[1]
http://nadeausoftware.com/articles/2012/04/c_c_tip_how_measure_elapsed_real_time_benchmarking

> On Sat, Dec 29, 2012 at 5:51 PM, Tim Blechmann <tim@xxxxxxxxxx> wrote:
>>> Damn, I was confusing the tempo argument. It's in beats per second, not BPM :)
>>> Sorry for the noise, it works fine.
>>
>> ah ok ... still i wonder why the semantics of bootSeconds() and
>> elapsedTime() is different on osx from other platforms


_______________________________________________
sc-dev mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-dev/
search: https://listarc.bham.ac.uk/lists/sc-dev/search/