This timer does not fire every second, when I check the log and user interface, it seems to fire every 3-4 seconds.
func startTimer() {
print("start timer")
timer = Timer.scheduledTimer(timeInterval: 1,
target: self,
selector:
userInfo: nil,
repeats: true)
}
func timerDidFire(timer: Timer) {
print("timer")
updateLabels()
}
Is this something that will happen on Watch due to lack of features, or is something wrong in my code?
Here is the log, if necessary :
0.0396000146865845
3.99404102563858
7.97501903772354
11.9065310359001
EDIT:
And to clarify that I update every second, this is a workout timer, so it needs to be updated every second that is ticking.
source
share