delay()

Structure

Description

Halts the program for the specified number of milliseconds.

Syntax

void delay(int ms)

Parameters

NameTypeDescription
msintnumber of milliseconds to pause

Returns

void

Related

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)); }