2 Measure the lenght of the Loop cycle.
13 long currentMillis = millis();
16 /* By doing complex math, reading sensors, using the "delay" function,
17 * etc you will increase the time required to finish the loop,
18 * which will decrease the number of loops per second.
21 if(currentMillis - lastMillis > 1000){
22 Serial.print("Loops last second:");
23 Serial.println(loops);
25 lastMillis = currentMillis;