Calculate time for 1 loop iteration in Arduino.
The output is in ms. Replace millis() to micros() to get output in us.
Tested on Leonardo, Uno and Mega 2560
Auralius Manurung (2020). Arduino - Loop Time S-Function (https://www.mathworks.com/matlabcentral/fileexchange/55691-arduino-loop-time-s-function), MATLAB Central File Exchange. Retrieved .
Inspired by: Device Drivers
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!