One Logo Pool Ball
Foundation · IOS API REFERENCE

RunLoop.SchedulerTimeType

struct · iOS 13.0+ · SDK 27.1

struct SchedulerTimeType

The scheduler time type used by the run loop.

Members (5)

get · iOS 13.0+

date

TypeScript
get date(): globalThis.Date
Swift declaration
var date: Date

The date represented by this type.

set · iOS 13.0+

date

TypeScript
set date(value: globalThis.Date)
Swift declaration
var date: Date

The date represented by this type.

method · iOS 13.0+

advanced

TypeScript
advanced(n: RunLoop_SchedulerTimeType_Stride): RunLoop_SchedulerTimeType
Swift declaration
func advanced(by n: RunLoop.SchedulerTimeType.Stride) -> RunLoop.SchedulerTimeType

Returns a run loop scheduler time calculated by advancing this instance’s time by the given interval. - Parameter n: A time interval to advance. - Returns: A dispatch queue time advanced by the given interval from this instance’s time.

method · iOS 13.0+

distance

TypeScript
distance(other: RunLoop_SchedulerTimeType): RunLoop_SchedulerTimeType_Stride
Swift declaration
func distance(to other: RunLoop.SchedulerTimeType) -> RunLoop.SchedulerTimeType.Stride

Returns the distance to another run loop scheduler time. - Parameter other: Another dispatch queue time. - Returns: The time interval between this time and the provided time.

init · iOS 13.0+

init

TypeScript
static init(date: globalThis.Date): RunLoop_SchedulerTimeType
Swift declaration
init(_ date: Date)

Initializes a run loop scheduler time with the given date. - Parameter date: The date to represent.

Skipped declarations

No declarations were skipped in this snapshot.

All Foundation types →