Contents

CMTimebaseGetTimeAndRate(_:timeOut:rateOut:)

Returns the current time and rate of a timebase.

Declaration

func CMTimebaseGetTimeAndRate(_ timebase: CMTimebase, timeOut: UnsafeMutablePointer<CMTime>?, rateOut: UnsafeMutablePointer<Float64>?) -> OSStatus

Discussion

You can use this function to take a consistent snapshot of the two values, avoiding possible inconsistencies due to external changes between retrieval of time and rate.

See Also

Getting and Setting Time