VirtualTimeInterval
public struct VirtualTimeInterval
extension VirtualTimeInterval: SignedNumeric
extension VirtualTimeInterval: Comparable
extension VirtualTimeInterval: ExpressibleByIntegerLiteral
extension VirtualTimeInterval: SchedulerTimeIntervalConvertible
Unit of relative virtual time consumed by the TestScheduler
-
Declaration
Swift
public typealias Magnitude = Int
-
Declaration
Swift
public var magnitude: Int { get }
-
Declaration
Swift
public init?<T>(exactly source: T) where T : BinaryInteger
-
Declaration
Swift
public static func * (lhs: VirtualTimeInterval, rhs: VirtualTimeInterval) -> VirtualTimeInterval
-
Declaration
Swift
public static func *= (lhs: inout VirtualTimeInterval, rhs: VirtualTimeInterval)
-
Declaration
Swift
public static func + (lhs: VirtualTimeInterval, rhs: VirtualTimeInterval) -> VirtualTimeInterval
-
Declaration
Swift
public static func - (lhs: VirtualTimeInterval, rhs: VirtualTimeInterval) -> VirtualTimeInterval
-
Declaration
Swift
public static func += (lhs: inout VirtualTimeInterval, rhs: VirtualTimeInterval)
-
Declaration
Swift
public static func -= (lhs: inout VirtualTimeInterval, rhs: VirtualTimeInterval)
-
Declaration
Swift
public static func < (lhs: VirtualTimeInterval, rhs: VirtualTimeInterval) -> Bool
-
Declaration
Swift
public typealias IntegerLiteralType = Int
-
Declaration
Swift
public init(integerLiteral value: Int)
-
Declaration
Swift
public static func seconds(_ s: Int) -> VirtualTimeInterval
-
Declaration
Swift
public static func seconds(_ s: Double) -> VirtualTimeInterval
-
Declaration
Swift
public static func milliseconds(_ ms: Int) -> VirtualTimeInterval
-
Declaration
Swift
public static func microseconds(_ us: Int) -> VirtualTimeInterval
-
Declaration
Swift
public static func nanoseconds(_ ns: Int) -> VirtualTimeInterval