Actually just had a quick look at it and I can't see anything obvious (the ESP8266 port doesn't do any fancy timing - it just runs Espruino as fast as it can). Maybe if you have the problem again, take a look at the debugging command posted above and see if anything looks wrong.
It's possible that the time from getTime() overflows every so often?
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.
Thanks for letting me know.
Actually just had a quick look at it and I can't see anything obvious (the ESP8266 port doesn't do any fancy timing - it just runs Espruino as fast as it can). Maybe if you have the problem again, take a look at the debugging command posted above and see if anything looks wrong.
It's possible that the time from
getTime()
overflows every so often?