pluralsight / mob-timer

A mob programming application
Apache License 2.0
65 stars 26 forks source link

Move away from SetInterval to Date.now #38

Closed MattRCole closed 4 years ago

MattRCole commented 4 years ago

When offscreen (IE in another macOs desktop), the mob timer accuracy tends to drift, making turns last several minutes longer than they should.

This pull request moves away from trusting the SetInterval callback to be called every second, and instead relies on computed time differences using Javascript's Date object.