Instance Method

itemTime(forMachAbsoluteTime:)

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

Declaration

func itemTime(forMachAbsoluteTime machAbsoluteTime: Int64) -> CMTime

Parameters

machAbsoluteTime

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.