NineWorlds / xstreamer

XStreamer X-Wing Squad and Imperial Assault Army Helper for Twitch and YouTube Streamers
MIT License
8 stars 3 forks source link

Count Down Timer loosing time #29

Closed kingargyle closed 7 years ago

kingargyle commented 7 years ago

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 commented 7 years ago

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