ADC Home > Reference Library > Reference > Audio > Core Audio > Core Audio Framework Reference

 


HostTime

Includes:

Introduction

This collection of functions provides access to the host's time base. It also provides descriptive information about the time base and translations to and from nanoseconds.



Functions

AudioConvertHostTimeToNanos
Convert the given host time into a time in nanoseconds.
AudioConvertNanosToHostTime
Convert the given nanosecond time into a host time.
AudioGetCurrentHostTime
Gets the current host time.
AudioGetHostClockFrequency
Gets the number of ticks per second in the host time base.
AudioGetHostClockMinimumTimeDelta
Gets the smallest number of ticks that two succeeding values will ever differ. by.

AudioConvertHostTimeToNanos


Convert the given host time into a time in nanoseconds.

extern UInt64 AudioConvertHostTimeToNanos(
    UInt64 inHostTime);  
Parameters
inHostTime
A UInt64 containing the host time to convert.
Return Value

A UInt64 containining the converted host time.

Availability
Introduced in Mac OS X v10.0.

AudioConvertNanosToHostTime


Convert the given nanosecond time into a host time.

extern UInt64 AudioConvertNanosToHostTime(
    UInt64 inNanos);  
Parameters
inNanos
A UInt64 containing the nanosecond time to convert.
Return Value

A UInt64 containining the converted nanosecond time.

Availability
Introduced in Mac OS X v10.0.

AudioGetCurrentHostTime


Gets the current host time.

extern UInt64 AudioGetCurrentHostTime();  
Return Value

A UInt64 containing the current host time.

Availability
Introduced in Mac OS X v10.0.

AudioGetHostClockFrequency


Gets the number of ticks per second in the host time base.

extern Float64 AudioGetHostClockFrequency();  
Return Value

A Float64 containing the number of ticks per second in the host time base.

Availability
Introduced in Mac OS X v10.0.

AudioGetHostClockMinimumTimeDelta


Gets the smallest number of ticks that two succeeding values will ever differ. by.

extern UInt32 AudioGetHostClockMinimumTimeDelta();  
Return Value

A UInt32 containing the smallest number of ticks that two succeeding values will ever differ.

Availability
Introduced in Mac OS X v10.0.


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.
Last Updated: 2006-10-25