Function

CACurrentMediaTime()

Returns the current absolute time, in seconds.

Declaration

func CACurrentMediaTime() -> CFTimeInterval

Return Value

A CFTimeInterval derived by calling mach_absolute_time() and converting the result to seconds.

See Also

Animation Timing

class CAMediaTimingFunction

A function that defines the pacing of an animation as a timing curve.

protocol CAMediaTiming

Methods that model a hierarchical timing system, allowing objects to map time between their parent and local time.

class CADisplayLink

A timer object that allows your application to synchronize its drawing to the refresh rate of the display.

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