Structure

ImmediateScheduler.SchedulerTimeType.Stride

The increment by which the immediate scheduler counts time.

Topics

Creating Scheduler Time Strides

init(Int)

Creates an immediate scheduler time interval from the given time interval.

init?<T>(exactly: T)

Creates an immediate scheduler time interval from a binary integer type.

init(floatLiteral: Double)

Creates an immediate scheduler time interval from a floating-point seconds value.

init(from: Decoder)

Creates an immediate scheduler time interval by decoding from the given decoder.

init(integerLiteral: Int)

Creates an immediate scheduler time interval from an integer seconds value.

Creating Scheduler Time Strides from Seconds

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

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

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

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

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

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

static func seconds(Double) -> ImmediateScheduler.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) -> ImmediateScheduler.SchedulerTimeType.Stride

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

Using Predefined Scheduler Time Strides

Declaring Timekeeping Types

typealias ImmediateScheduler.SchedulerTimeType.Stride.FloatLiteralType

The type used when evaluating floating-point literals.

typealias ImmediateScheduler.SchedulerTimeType.Stride.Magnitude

The type used for expressing the stride’s magnitude.

Expressing Scheduler Time Strides as Seconds

var magnitude: Int

The value of this time interval in seconds.

Performing Mathematical Operations

func negate()

Replaces this value with its additive inverse.

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

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

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

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

static func -= (inout ImmediateScheduler.SchedulerTimeType.Stride, ImmediateScheduler.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 < (ImmediateScheduler.SchedulerTimeType.Stride, ImmediateScheduler.SchedulerTimeType.Stride) -> Bool

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

static func <= (ImmediateScheduler.SchedulerTimeType.Stride, ImmediateScheduler.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 > (ImmediateScheduler.SchedulerTimeType.Stride, ImmediateScheduler.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 >= (ImmediateScheduler.SchedulerTimeType.Stride, ImmediateScheduler.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.

Encoding Scheduler Time Strides

func encode(to: Encoder)

Encodes this immediate scheduler time into the given encoder.

Relationships

From Protocol