Live data from Hacker News

Why the iPhone Timer app displays a fake time

lukashermann.dev

1–10 of 83 posts

Re: Why the iPhone Timer app displays a fake time

#6
> Milliseconds are converted to seconds by dividing by 1000 and rounding down like so

It seems like the simpler explanation is that the iPhone actually rounds to the closest integer rather than rounding down. (Whether they do this invisibly by adding 0.5s and rounding down is an implementation detail.)

Re: Why the iPhone Timer app displays a fake time

#7
iOS 9 and below, IIRC, the timer app stopwatch screen would really flake out after 1000 hours. By 'flake out' I mean it would slow down the updating a lot - screen got somewhat jerky and slow to respond.

From iOS 10 onwards, 1000+ hours doesn't seem to phase it at all - no slow downs.

source: 1490:43:24 ago I started my timer, but I can't remember why now.

Re: Why the iPhone Timer app displays a fake time

#10
Round half up is the typical expectation for most people in rounding to the nearest whole value.

It isn't displaying a "fake" time, it's rounding.

https://en.wikipedia.org/wiki/Rounding#Round_half_up

Edit: Note, Round Half Up != Round half away from zero but that isn't important for this scenario :D

Post reply on HN