Re: [Jack-Devel] jack dsp load calculation

PrevNext  Index
DateSat, 26 Dec 2015 23:06:48 +0100
From Kjetil Matheussen <[hidden] at gmail dot com>
To"[hidden] at lists dot jackaudio dot org" <[hidden] at lists dot jackaudio dot org>, Robin Gareus <[hidden] at gareus dot org>
In-Reply-ToKjetil Matheussen Re: [Jack-Devel] jack dsp load calculation
On Sat, Dec 26, 2015 at 5:56 PM, Kjetil Matheussen <[hidden]
> wrote:

>
>> Radium also runs on Windows and OSX, right?
>> Do you use glib functions or directly some low-level API?
>>
>>
> On both Windows and OSX, it will use CLOCK_MONOTONIC if it is available.
> If not, it will use mach_absolute_time() on OSX, and
> QueryPerformanceFrequency()
> on Windows. If neither of these are available, it will use tsc.
>
>
Sorry, for this purpose, jack_get_time() is used, not that other function.
That other function is only used when it's important that get_time_of_day
is not used, and when it's okay if tsc is used directly.

I also see that QueryPerformanceCounter is used for jack_get_time().

I thought QueryPerformanceCounter should do the right thing though, but it
seems a bit complicated:
https://msdn.microsoft.com/nb-no/library/windows/desktop/dn553408%28v=vs.85%29.aspx

"
Q: Is the performance counter monotonic (non-decreasing)?
A:Yes

Q: How accurate is the performance counter?
A:  The answer depends on a variety of factors. For more info, see
https://msdn.microsoft.com/nb-no/library/windows/desktop/dn553408%28v=vs.85%29.aspx#AppendixA
"
PrevNext  Index

1451167615.13888_0.ltw:2,a <CAC6niEJqz4N-rD+ajr-sPNi-Cybujg4x8wE8O5N5n9p+nj7Jfw at mail dot gmail dot com>