Instance Property

currentTime

The absolute time, in seconds, to use for scheduling haptic and audio events.

Declaration

var currentTime: TimeInterval { get }

Discussion

Time is measured in seconds. This time applies to all haptic and audio events sent to and managed by the Core Haptics engine. Use the current time as a way to determine or track the start times of haptic and audio events, created as CHHapticEvent objects. It corresponds to the relativeTime and duration properties of haptic events.

See Also

Getting the Current Media Time

var CHHapticTimeImmediate: TimeInterval

A time constant used to schedule a command immediately.