tock icon indicating copy to clipboard operation
tock copied to clipboard

Time in seconds is off

Open tforward opened this issue 6 years ago • 4 comments

Starting a timer and noticing the time in seconds skips sometimes. Like in a 25 min timer [25:58, 25:57] and 25:59 is missing. Also have had 25:58 missing and 25:59 showing.

Sometime will repeat the same number in general overtime

`function displayTime(timer) { const currentTime = timer.msToTimecode(timer.lap()); // console.log(timer.msToTimecode(timer.lap())); const timeMMSS = currentTime.substring(3, 8); console.log(currentTime); }

function getTimer() { const timer = new Tock({ countdown: true, interval: 1000, callback: displayTime // complete: someCompleteFunction }); return timer; }`

tforward avatar Jun 04 '18 01:06 tforward