📜  millis() - C 编程语言代码示例

📅  最后修改于: 2022-03-11 15:04:43.845000             🧑  作者: Mango

代码示例2
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
}