Skip to content

Reduce countdown timer resolution to minutes#8

Open
benzado wants to merge 1 commit intomasterfrom
minute-clock
Open

Reduce countdown timer resolution to minutes#8
benzado wants to merge 1 commit intomasterfrom
minute-clock

Conversation

@benzado
Copy link
Copy Markdown
Member

@benzado benzado commented Jun 18, 2013

Updating the countdown timer once-per-second is inefficient. The actual marathon start will probably not be accurate to the minute, let alone to the second. Consuming 60 times the CPU for per-second updates isn't worthwhile.

I added code to schedule the countdown timer for per-minute updates, rather than per-second. Note that this only changes the timer, not the display, which still includes seconds. I was also coding without a Java compiler, so I don't even know if this works. If it does, however, you can remove the seconds from the countdown display.

rather than per-second. Note that this only changes the timer, not the
display, which still includes seconds.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant