Currently the timer code just calls a function to decrement the timer every 1000ms using setTimeout(), which only guarantees that the function will be called every 1000ms or more. Thus the total time could be a bit more than 2:30, if the device is doing. Would be nice to time the actual gap between executions of the timer function and adjust accordingly to get more accurate timing.
Currently the timer code just calls a function to decrement the timer every 1000ms using
setTimeout(), which only guarantees that the function will be called every 1000ms or more. Thus the total time could be a bit more than 2:30, if the device is doing. Would be nice to time the actual gap between executions of the timer function and adjust accordingly to get more accurate timing.