WallClock
public protocol WallClock : AnyObject
Clock used to properly retrieve time-dependent data from the map.
-
Gets the current time from the device clock.
Declaration
Swift
func now() -> DateReturn Value
The current time provided by the device clock.
-
Provides the default WallClock implementation based on the device clock.
Declaration
Swift
static func getDefault() -> WallClockReturn Value
The default WallClock instance that uses the device clock.