Weitere ähnliche Inhalte
Mehr von Jhonny Wladimir Peñaloza Cabello
Mehr von Jhonny Wladimir Peñaloza Cabello (20)
Comparacion entre millis y micros
- 1. //COMPARACION ENTRE MILLIS Y MICROS
/*
Programa funciones_time_01.ino ¡¡¡ OK !!!
Prueba funciones de Time, Diferencia entre
microsegundos y milisegundos
20/04/2017
*/
unsigned long t_ms, t_us;
void setup(){
Serial.begin(9600);
}
void loop(){
t_us = micros();
t_ms = millis();
Serial.print("Tiempo us: ");
Serial.println(t_us);
Serial.print("Tiempo ms: ");
Serial.println(t_ms);
delay(1000);
}