delay()
StructureDescription
Halts the program for the specified number of milliseconds.
Syntax
void delay(int ms)
Parameters
| Name | Type | Description |
|---|---|---|
| ms | int | number of milliseconds to pause |
Returns
voidRelated
Under the Hood
From Processing.h:
inline void delay(int ms) { std::this_thread::sleep_for(std::chrono::milliseconds(ms)); }
static void delay(int ms) { std::this_thread::sleep_for(std::chrono::milliseconds(ms)); }