Arduino uno - calculating and outputting a time for each loop to execute?

jremington:

unsigned long start_time=millis(); //record start time

...
unsigned long delta_t = millis() - start_time; //the difference

Hi jremington,

is this part of the void setup or included within the loop?