Duration
public class Duration : SdkObject
Representation of an amount of time.
Used to provide timeout durations for SDK API requests.
-
Constructs a
Durationrepresenting the provided time in millisecondsDeclaration
Swift
public convenience init(millis: UInt64) -
Constructs a
Durationrepresenting the provided time in secondsDeclaration
Swift
public convenience init(seconds: UInt64) -
Time in milliseconds
Declaration
Swift
public lazy var millis: UInt64 { get set } -
Time in seconds
Declaration
Swift
public lazy var seconds: UInt64 { get set }
View on GitHub
Duration Class Reference