MachAbsoluteTimeClockFrequency

>Psychtoolbox>PsychBasic

timebaseFrequencyHz = MachAbsoluteTimeClockFrequency

OS X: ___________________________________________________________________

Return the frequency of the Mach Kernel “absolute timebase clock”. The
frequency depends your hardware, both the model of CPU and a system
hardware clock.

Mach Kernel functions which assign real-time “Time constraint priority”
status to threads give parameters in Mach time base units. The counter which
clocks time allocated to your thread counts time in these units. Use the
absolute timebase clock frequency returned by MachAbsoluteTimeClockFrequency to convert
seconds into absolute timebase units which you pass to functions which
set which set priority:

time_interval_in_mach_units=
time_interval_in_seconds * timebaseFrequencyHz;

For more information on the Mach absolute time clock see Apple Technical
Q&A 1398:

http://developer.apple.com/qa/qa2004/qa1398.html

OS 9: ___________________________________________________________________

MachAbsoluteTimeClockFrequency is not provided on OS 9 because the Mach
time base is a feature of only the OS X Mach Kernel.

WINDOWS: ________________________________________________________________

MachAbsoluteTimeClockFrequency is not provided on Windows because the
Mach time base is a feature of only the OS X Mach Kernel.
_________________________________________________________________________

see also: Priority

Path   Retrieve current version from GitHub | View changelog
Psychtoolbox/PsychBasic/MachAbsoluteTimeClockFrequency.m