Time
1. delay()
1.1. Description
Pauses the program for the amount of time (in milliseconds) specified as parameter. (There are 1000 milliseconds in a second.)
1.2. Syntax
delay(ms)
1.3. Parameters
ms
: the number of milliseconds to pause (unsigned long
)
1.4. Returns
Nothing
2. delayMicroseconds()
2.1. Description
Pauses the program for the amount of time (in microseconds) specified as parameter. There are a thousand microseconds in a millisecond, and a million microseconds in a second.
2.2. Syntax
delayMicroseconds(us)
2.3. Parameters
us
: the number of microseconds to pause (unsigned int
)
2.4. Returns
Nothing
3. micros()
3.1. Description
Returns the number of microseconds since the Arduino board began running the current program.
3.2. Syntax
time = micros()
3.3. Parameters
Nothing
3.4. Returns
Returns the number of microseconds since the Maixduino board began running the current program.(unsigned long
)
4. millis()
4.1. Description
Returns the number of milliseconds passed since the Maixduino board began running the current program. This number will overflow (go back to zero), after approximately 50 days.
4.2. Syntax
time = millis()
4.3. Parameters
None
4.4. Returns
Number of milliseconds passed since the program started (unsigned long
)