One Logo Pool Ball
Dispatch · IOS API REFERENCE

DispatchQueue.SchedulerTimeType.Stride

struct · iOS 13.0+ · SDK 27.1

struct Stride

A type that represents the distance between two values.

Members (12)

static · iOS 13.0+

nanoseconds

TypeScript
static nanoseconds(ns: number): DispatchQueue_SchedulerTimeType_Stride
Swift declaration
static func nanoseconds(_ ns: Int) -> DispatchQueue.SchedulerTimeType.Stride

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

init · iOS 13.0+

init

TypeScript
static initFloatLiteral(value: number): DispatchQueue_SchedulerTimeType_Stride
Swift declaration
init(floatLiteral value: Double)

Creates a dispatch queue time interval from a floating-point seconds value. - Parameter value: The number of seconds, as a `Double`.

static · iOS 13.0+

microseconds

TypeScript
static microseconds(us: number): DispatchQueue_SchedulerTimeType_Stride
Swift declaration
static func microseconds(_ us: Int) -> DispatchQueue.SchedulerTimeType.Stride

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

static · iOS 13.0+

milliseconds

TypeScript
static milliseconds(ms: number): DispatchQueue_SchedulerTimeType_Stride
Swift declaration
static func milliseconds(_ ms: Int) -> DispatchQueue.SchedulerTimeType.Stride

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

get · iOS 13.0+

timeInterval

TypeScript
get timeInterval(): DispatchTimeInterval
Swift declaration
var timeInterval: DispatchTimeInterval { get }

A `DispatchTimeInterval` created with the value of this type in nanoseconds.

init · iOS 13.0+

init

TypeScript
static initIntegerLiteral(value: number): DispatchQueue_SchedulerTimeType_Stride
Swift declaration
init(integerLiteral value: Int)

Creates a dispatch queue time interval from an integer seconds value. - Parameter value: The number of seconds, as an `Int`.

init · iOS 13.0+

init

TypeScript
static initExactly(source: number): (DispatchQueue_SchedulerTimeType_Stride) | null
Swift declaration
init?<T>(exactly source: T) where T : BinaryInteger

Creates a dispatch queue time interval from a binary integer type representing a number of seconds. If `source` cannot be exactly represented, the resulting time interval is `nil`. - Parameter source: A binary integer representing a time interval.

static · iOS 13.0+

seconds

TypeScript
static seconds(s: number): DispatchQueue_SchedulerTimeType_Stride
Swift declaration
static func seconds(_ s: Double) -> DispatchQueue.SchedulerTimeType.Stride

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

static · iOS 13.0+

seconds

TypeScript
static seconds17141(s: number): DispatchQueue_SchedulerTimeType_Stride
Swift declaration
static func seconds(_ s: Int) -> DispatchQueue.SchedulerTimeType.Stride

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

get · iOS 13.0+

magnitude

TypeScript
get magnitude(): number
Swift declaration
var magnitude: Int { get set }

The value of this time interval in nanoseconds.

set · iOS 13.0+

magnitude

TypeScript
set magnitude(value: number)
Swift declaration
var magnitude: Int { get set }

The value of this time interval in nanoseconds.

init · iOS 13.0+

init

TypeScript
static init(timeInterval: DispatchTimeInterval): DispatchQueue_SchedulerTimeType_Stride
Swift declaration
init(_ timeInterval: DispatchTimeInterval)

Creates a dispatch queue time interval from the given dispatch time interval. - Parameter timeInterval: A dispatch time interval.

Skipped declarations

No declarations were skipped in this snapshot.

All Dispatch types →