The Javascript getTime() function seems to be ~100 times slower than the pulse sampling e.lastTime using setWatch(), which seems to be able to send the correct time duration.
I was really after is there a way to check the IRQ register for flag detail.
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.
Get the current time, call the function, get the current time and calculate the duration. If it's slower than your clock there's a problem for sure.