ohh -0nce a second you are going to the internet to update the time?
Instead do that a lot less frequently - say once an hour - and then set the internal clock to the time, and use the internal clock as your time reference.
What is probably happening is a new call to get the time is made, when the last has not finished.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
ohh -0nce a second you are going to the internet to update the time?
Instead do that a lot less frequently - say once an hour - and then set the internal clock to the time, and use the internal clock as your time reference.
What is probably happening is a new call to get the time is made, when the last has not finished.