Skip to content
This repository has been archived by the owner on Nov 17, 2022. It is now read-only.

Count Down Timer loosing time #29

Closed
kingargyle opened this issue Jan 9, 2017 · 1 comment
Closed

Count Down Timer loosing time #29

kingargyle opened this issue Jan 9, 2017 · 1 comment

Comments

@kingargyle
Copy link
Collaborator

The eclipse Job Scheduler is slowly causing the count down clock to loose time. So probably need to switch to using the java.util.Timer and then scheduling the write job.

http://bioportal.weizmann.ac.il/course/prog2/tutorial/essential/threads/timer.html

Basically, update the on screen timer, schedule a Job to write the data to the timer.txt file. The timer task is written such that it is guaranteed to kick off every second.

@kingargyle
Copy link
Collaborator Author

This is now fixed. The timer no longer seems to loose time as it is running.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant