You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • 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 :)

About

Avatar for Gordon @Gordon started