Duration

public class Duration : SdkObject

Representation of an amount of time.

Used to provide timeout durations for SDK API requests.

  • Constructs a Duration representing the provided time in milliseconds

    Declaration

    Swift

    public convenience init(millis: UInt64)
  • Constructs a Duration representing the provided time in seconds

    Declaration

    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 }