View difference between Paste ID: XQ4QzwHm and hMWRDbT6
SHOW: | | - or go back to the newest paste.
1-
unsigned long currentTime = 0;
1+
2
3
void setup() {
4
  Serial.begin(9600);
5
  Serial.println("abc run\n");
6
}
7
 
8
void loop()
9
{
10
  Serial.print("Time: ");
11-
  currentTime = millis();
11+
  unsigned long currentTime = millis();
12
  //prints time since program started
13
  Serial.println(currentTime);
14
  // wait a second so as not to send massive amounts of data
15
  delay(1000);
16-
// then comment out delay and use delayMicroseconds
16+