One Logo Pool Ball
Foundation · IOS API REFERENCE

RunLoop.SchedulerTimeType.Stride

struct · iOS 13.0+ · SDK 27.1

struct Stride

The interval by which run loop times advance.

Members (12)

static · iOS 13.0+

nanoseconds

TypeScript
static nanoseconds(ns: number): RunLoop_SchedulerTimeType_Stride
Swift declaration
static func nanoseconds(_ ns: Int) -> RunLoop.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): RunLoop_SchedulerTimeType_Stride
Swift declaration
init(floatLiteral value: TimeInterval)

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

static · iOS 13.0+

microseconds

TypeScript
static microseconds(us: number): RunLoop_SchedulerTimeType_Stride
Swift declaration
static func microseconds(_ us: Int) -> RunLoop.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): RunLoop_SchedulerTimeType_Stride
Swift declaration
static func milliseconds(_ ms: Int) -> RunLoop.SchedulerTimeType.Stride

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

get · iOS 13.0+

timeInterval

TypeScript
get timeInterval(): number
Swift declaration
var timeInterval: TimeInterval { get }

The value of this time interval in seconds.

init · iOS 13.0+

init

TypeScript
static initIntegerLiteral(value: number): RunLoop_SchedulerTimeType_Stride
Swift declaration
init(integerLiteral value: TimeInterval)

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

init · iOS 13.0+

init

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

Creates a run loop scheduler time interval from a binary integer type. If `exactly` can't convert to a `TimeInterval`, the initializer returns `nil`.

static · iOS 13.0+

seconds

TypeScript
static seconds(s: number): RunLoop_SchedulerTimeType_Stride
Swift declaration
static func seconds(_ s: Double) -> RunLoop.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 seconds83121(s: number): RunLoop_SchedulerTimeType_Stride
Swift declaration
static func seconds(_ s: Int) -> RunLoop.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: TimeInterval

The value of this time interval in seconds.

set · iOS 13.0+

magnitude

TypeScript
set magnitude(value: number)
Swift declaration
var magnitude: TimeInterval

The value of this time interval in seconds.

init · iOS 13.0+

init

TypeScript
static init(timeInterval: number): RunLoop_SchedulerTimeType_Stride
Swift declaration
init(_ timeInterval: TimeInterval)

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

Skipped declarations

No declarations were skipped in this snapshot.

All Foundation types →