Watch events get queued up, with the times they're taken at recorded (e.time, e.lastTime, e.state) - I think you could compare those to the current time to detect how long it's been between the interrupt being triggered, and your function running. The queue is 128 events long on Espruino 1v3.
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.
Watch events get queued up, with the times they're taken at recorded (e.time, e.lastTime, e.state) - I think you could compare those to the current time to detect how long it's been between the interrupt being triggered, and your function running. The queue is 128 events long on Espruino 1v3.