#ifndef cbi
#define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit))
#endif
#ifndef sbi
#define sbi(sfr, bit) (_SFR_BYTE(sfr) |= _BV(bit))
#endif
// the setup routine runs once when you press reset:
void setup() {
Serial.begin(9600);
// This next set of code sets the ADC sampling rate (Page 217 of ATmega32 Datasheet)
// sbi changes the corresponding bit to 1, while cbi changes the bit to 0
sbi(ADCSRA,ADPS2) ;
cbi(ADCSRA,ADPS1) ;
sbi(ADCSRA,ADPS0) ;
}
// the loop routine runs over and over again forever:
void loop() {
// read the input on analog pin 0:
int start = micros() ;
uint16_t sensorValue1 = analogRead(A0);
uint16_t sensorValue2 = analogRead(A1);
uint16_t sensorValue3 = analogRead(A2);
uint16_t sensorValue4 = analogRead(A3);
uint16_t sensorValue5 = analogRead(A4);
int time=micros()-start;
Serial.println(time) ;
}