📜  Arduino-时间

📅  最后修改于: 2020-11-05 03:30:24             🧑  作者: Mango


Arduino提供了四种不同的时间操纵功能。他们是-

S.No. Function & Description
1

delay () function

The way the delay() function works is pretty simple. It accepts a single integer (or number) argument. This number represents the time (measured in milliseconds).

2

delayMicroseconds () function

The delayMicroseconds() function accepts a single integer (or number) argument. There are a thousand microseconds in a millisecond, and a million microseconds in a second.

3

millis () function

This function is used to return the number of milliseconds at the time, the Arduino board begins running the current program.

4

micros () function

The micros() function returns the number of microseconds from the time, the Arduino board begins running the current program. This number overflows i.e. goes back to zero after approximately 70 minutes.