micros

当前程序开始运行的时间,单位为微秒,该值在大约70分钟时会溢出归零


语法
 uint32 micros(void)


参数


返回值

当前程序开始运行的时间,溢出时归零


示例
unsigned int time;

void setup() {
}

void loop() {
  Serial.print("Time: ");
  time = micros();
  Serial.println(time);
  delay(1000);
}