Contents

CMClockGetAnchorTime(_:clockTimeOut:referenceClockTimeOut:)

Returns the current time from a clock and the matching time from the clock’s reference clock.

Declaration

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

Parameters

  • clock:

    The clock to retrieve the current time from.

  • clockTimeOut:

    On output, points to the current time.

  • referenceClockTimeOut:

    On output, points to the reference clock time.

Discussion

To make practical use of this, you may need to know what the clock’s reference clock is.

See Also

Accessing and Converting Time