sawhney17 / logseq-pomodoro-plugin

A quick pomodoro timer for logseq
MIT License
20 stars 9 forks source link

setInterval is unreliable. 1 timer second lasts about 2 real seconds #14

Open nhz-io opened 9 months ago

nhz-io commented 9 months ago

As the title says. Simply relying on setInterval to do your time keeping will not work without Tweening You need to recalculate the elapsed after each frame based on initial start time of the timer (and probably run the timer at half second resolution)

nhz-io commented 9 months ago

duplicate of #11 and #12