micros
获取 "Arduino时间",而不是 UNIX时间
函数原型
unsigned long micros(void);作用
返回值
示例
void setup() {
delay(500);
int time = micros();
// time 约等于 500,000
}
coid loop() {
return;
}最后更新于
获取 "Arduino时间",而不是 UNIX时间
unsigned long micros(void);获取 Arduino 通电后或复位后到现在的时间,单位微秒
unsigned long 无符号整型
Arduino 通电后或复位后到现在的时间,单位微秒
void setup() {
delay(500);
int time = micros();
// time 约等于 500,000
}
coid loop() {
return;
}最后更新于