|
|
|
|
|
by dingaling
2002 days ago
|
|
> Any sensible time handling solution will truncate instead of rounding. That doesn't really work for a countdown timer though since the last second would then display as zero, which is nonsense for 'time remaining'. You have to round up, always. The Android 9 countdown works intuitively, it takes a second to decrement from 5 to 4 and sounds the alarm exactly at 0. You can't pause it at zero... > Which is not to call apple's timer nonsensical. It pretty much is, since the last 'second' takes more than a second to elapse. |
|
> Any sensible time handling solution will round off toward the starting value.
So a stopwatch won't display "1" until a full second has elapsed, and will look like this for five seconds: "0...1...2...3...4...5!"
A timer won't display "4" until a full second has elapsed, and will look like this: "5...4...3...2...1...0!"
In the stopwatch case, the display shows "0" for 0.999 s; in the timer case it'll show "1" for 0.999 s.