Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

millis()

unsigned long myTime;

void setup() {
  Serial.begin(9600);
}
void loop() {
  Serial.print("Time: ");
  myTime = millis();

  Serial.println(myTime); // prints time since program started
  delay(1000);          // wait a second so as not to send massive amounts of data
}
Source by www.arduino.cc #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
6+4 =