The timer on the STM32F4 should be pretty good - to below 1us. The issue is the time that it takes to execute JavaScript code. Below 1ms, the JavaScript execution will be getting in the way of the timer.
You can however measure times using setWatch very accurately, as no JS is involved until after the event.
I'll be looking at increasing JS execution speed - there are many obvious ways to do it, but right now that is not actually a huge priority.
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.
The timer on the STM32F4 should be pretty good - to below 1us. The issue is the time that it takes to execute JavaScript code. Below 1ms, the JavaScript execution will be getting in the way of the timer.
You can however measure times using setWatch very accurately, as no JS is involved until after the event.
I'll be looking at increasing JS execution speed - there are many obvious ways to do it, but right now that is not actually a huge priority.