Probably best to remove the I2C write, and then just do:
var a = getTime(); for (var i=0;i<100;i++) doFunc(); var b = getTime(); console.log((b-a)/100);
For 8 iterations the performance hit of a loop won't be that great at all - I was just getting carried away :)
@Gordon started
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.
Probably best to remove the I2C write, and then just do:
For 8 iterations the performance hit of a loop won't be that great at all - I was just getting carried away :)