Function

CMClockGetTime(_:)

Retrieves the current time from a clock.

Declaration

func CMClockGetTime(_ clock: CMClock) -> CMTime

See Also

Accessing and Converting Time

func CMClockGetAnchorTime(CMClock, clockTimeOut: UnsafeMutablePointer<CMTime>, referenceClockTimeOut: UnsafeMutablePointer<CMTime>) -> OSStatus

Retrieves the current time from a clock and also the matching time from the clock's reference clock.

func CMClockConvertHostTimeToSystemUnits(CMTime) -> UInt64

Converts a host time from CMTime to the host time's native units.

func CMClockMakeHostTimeFromSystemUnits(UInt64) -> CMTime

Converts a host time from native units to CMTime.