MillisecondsRepresentable
public protocol MillisecondsRepresentable
Requirements for types that can be converted to and from milliseconds.
-
Initializes a new instance based on the given
millisecondsvalue.Declaration
Swift
init(_ milliseconds: Milliseconds)Parameters
millisecondsThe value in milliseconds.
-
The value in milliseconds.
Declaration
Swift
var milliseconds: Milliseconds { get } -
init(converting:Extension method) Initializes a new instance based on a value that conforms to the
MillisecondsRepresentableprotocol.Declaration
Swift
init(converting value: MillisecondsRepresentable)Parameters
valueValue that can be represented as a time interval in milliseconds.
View on GitHub
MillisecondsRepresentable Protocol Reference