Structure

RunLoop.SchedulerTimeType.Stride

The interval by which run loop times advance.

Topics

Creating Scheduler Time Strides

init(TimeInterval)

Creates a run loop scheduler time interval from the given time interval.

init?<T>(exactly: T)

Creates a run loop scheduler time interval from a binary integer type.

init(floatLiteral: TimeInterval)

Creates a run loop scheduler time interval from a floating-point seconds value.

init(integerLiteral: TimeInterval)

Creates a run loop scheduler time interval from an integer seconds value.

Converting to Seconds

static func microseconds(Int) -> RunLoop.SchedulerTimeType.Stride

Converts the specified number of microseconds into an instance of this scheduler time type.

static func milliseconds(Int) -> RunLoop.SchedulerTimeType.Stride

Converts the specified number of milliseconds into an instance of this scheduler time type.

static func nanoseconds(Int) -> RunLoop.SchedulerTimeType.Stride

Converts the specified number of nanoseconds into an instance of this scheduler time type.

static func seconds(Double) -> RunLoop.SchedulerTimeType.Stride

Converts the specified number of seconds, as a floating-point value, into an instance of this scheduler time type.

static func seconds(Int) -> RunLoop.SchedulerTimeType.Stride

Converts the specified number of seconds into an instance of this scheduler time type.

Expressing Numeric Types

typealias RunLoop.SchedulerTimeType.Stride.FloatLiteralType

The type used when evaluating floating-point literals.

typealias RunLoop.SchedulerTimeType.Stride.IntegerLiteralType

The type used when evaluating integer literals.

typealias RunLoop.SchedulerTimeType.Stride.Magnitude

The type used for expressing the stride’s magnitude.

Inspecting Stride Properties

var magnitude: TimeInterval

The value of this time interval in seconds.

var timeInterval: TimeInterval

The value of this time interval in seconds.

Performing Mathmatical Operations

func negate()

Replaces this value with its additive inverse.

static func *= (inout RunLoop.SchedulerTimeType.Stride, RunLoop.SchedulerTimeType.Stride)

Multiplies the values of the two arguments, and assigns the result to the first argument.

static func += (inout RunLoop.SchedulerTimeType.Stride, RunLoop.SchedulerTimeType.Stride)

Adds the values of the two arguments, and assigns the result to the first argument.

static func - (RunLoop.SchedulerTimeType.Stride, RunLoop.SchedulerTimeType.Stride) -> RunLoop.SchedulerTimeType.Stride

Returns the result of subtracting the value of the second argument from the value of the first.

static func -= (inout RunLoop.SchedulerTimeType.Stride, RunLoop.SchedulerTimeType.Stride)

Subtracts the value of the second argument from the value of the first, and assigns the result to the first argument.

Comparing Scheduler Time Strides

static func != (RunLoop.SchedulerTimeType.Stride, RunLoop.SchedulerTimeType.Stride) -> Bool

Returns a Boolean value indicating whether two values aren’t equal.

static func < (RunLoop.SchedulerTimeType.Stride, RunLoop.SchedulerTimeType.Stride) -> Bool

Returns a Boolean value indicating whether the value of the first argument is less than that of the second argument.

static func <= (RunLoop.SchedulerTimeType.Stride, RunLoop.SchedulerTimeType.Stride) -> Bool

Returns a Boolean value indicating whether the value of the first argument is less than or equal to that of the second argument.

static func > (RunLoop.SchedulerTimeType.Stride, RunLoop.SchedulerTimeType.Stride) -> Bool

Returns a Boolean value indicating whether the value of the first argument is greater than that of the second argument.

static func >= (RunLoop.SchedulerTimeType.Stride, RunLoop.SchedulerTimeType.Stride) -> Bool

Returns a Boolean value indicating whether the value of the first argument is greater than or equal to that of the second argument.

Instance Methods

Relationships

From Protocol

See Also

Working with Scheduler Time Intervals

func advanced(by: RunLoop.SchedulerTimeType.Stride) -> RunLoop.SchedulerTimeType

Returns a run loop scheduler time calculated by advancing this instance’s time by the given interval.

func distance(to: RunLoop.SchedulerTimeType) -> RunLoop.SchedulerTimeType.Stride

Returns the distance to another run loop scheduler time.