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() -> Date

    Return Value

    The current time provided by the device clock.

  • Provides the default WallClock implementation based on the device clock.

    Declaration

    Swift

    static func getDefault() -> WallClock

    Return Value

    The default WallClock instance that uses the device clock.