start(mode:period:)

Starts the timer and reset its status to zero.

Timer.swift:141
func start(mode: Mode? = nil, period: Int? = nil)

Parameters

mode

The mode of the timer. If it’s nil, it adopts the mode set when initializing the timer.

period

The period of the timer in millisecond. If it’s nil, it equals the period set when initializing the timer.