Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

wozmatic

macrumors 6502
Original poster
Apr 30, 2014
388
778
If the clock changes the time of day, manually or daylight savings time, it will affect your stopwatch / timer.

So if your clock is set to 1:00pm and you start a stopwatch, then after 1 minute you change the time to 1:30pm, your stopwatch will say 30 min, instead it should be 1 minute.

Same thing with timers, if you set a 15 minute timer at 1:00pm and change clock to 1:30pm that timer will be gone.

A fix would be making the stopwatch / timer independent of the time of day clock
 

MacCheetah3

macrumors 68020
Nov 14, 2003
2,254
1,201
Central MN
It’s not a bug rather how time duration is typically handled programmatically. I do not know the reason but it’s the same on Android — don’t recall if also in Windows. The timer function doesn’t actually just start counting up from zero. Rather it saves the current time in millisecond format. When a display update is requested, including when the timer stops, the current time in ms is again saved. Finally, the function subtracts the initial ms timestamp from the later and formats accordingly.

Basically: end timestamp - start timestamp = duration
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.