millis(), micros(), delay(), delayMicroseconds(). More...
Functions | |
| unsigned long | millis (void) |
| Milliseconds since the board started. | |
| unsigned long | micros (void) |
| Microseconds since the board started, with 1 µs resolution (4 µs on an Uno). | |
| void | delay (unsigned long) |
| Waits a number of milliseconds. | |
| void | delayMicroseconds (unsigned int us) |
| Waits a number of microseconds, exactly, by busy-waiting. | |
millis(), micros(), delay(), delayMicroseconds().
All use the RP2040's microsecond timer, so they are exact at every Tools > CPU Speed setting.
| void delay | ( | unsigned long | ) |
| void delayMicroseconds | ( | unsigned int | us | ) |
Waits a number of microseconds, exactly, by busy-waiting.
| us | Time in µs. |
| unsigned long micros | ( | void | ) |
Microseconds since the board started, with 1 µs resolution (4 µs on an Uno).
| unsigned long millis | ( | void | ) |
Milliseconds since the board started.