Instance Method


Converts a Mach host time to the item’s timebase.


func itemTime(forMachAbsoluteTime machAbsoluteTime: Int64) -> CMTime



The Mach host time to convert. You typically retrieve this value using the mach_absolute_time function.

Return Value

The equivalent time in the item’s timebase.

See Also

Converting Time Information

func itemTime(forHostTime: CFTimeInterval) -> CMTime

Converts a host time, specified in seconds, to the item’s timebase.

func itemTime(for: CVTimeStamp) -> CMTime

Converts a Core Video timestamp to the item’s timebase.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software