Delay() - Reference /
Maybe your like
Reference+Documentation→Reference→Environment
Name
delay()
Description
The delay() function causes the program to halt for a specified time. Delay times are specified in thousandths of a second. For example, running delay(3000) will stop the program for three seconds and delay(500) will stop the program for a half-second.
The screen only updates when the end of draw() is reached, so delay() cannot be used to slow down drawing. For instance, you cannot use delay() to control the timing of an animation. The delay() function should only be used for pausing scripts (i.e. a script that needs to pause a few seconds before attempting a download, or a sketch that needs to wait a few milliseconds before reading from the serial port).Examples
- Copyimport processing.serial.*; Serial myPort; // The serial port void setup() { printArray(Serial.list()); myPort = new Serial(this, Serial.list()[0], 9600); } void draw() { while (myPort.available() > 0) { int inByte = myPort.read(); println(inByte); } delay(100); }
Syntax
- delay(napTime)
Parameters
- napTime(int)milliseconds to pause before running draw() again
Return
- void
Related
- frameRate
- draw()

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Tag » What Does Processing Delay Mean
-
Processing Delay - Financial Dictionary
-
Processing Delay Definition And Meaning | Collins English Dictionary
-
Language Processing Delays - Auditory Processing
-
What Exactly Is Meant By Processing Exception, Other Delay ... - Quora
-
Merchant Processing Delay Definition | Law Insider
-
What Is Slow Processing Speed?
-
Processing Exception & USPS: All You Need To Know
-
Definition Of Nodal Processing Delay | PCMag
-
Processing Delay Meaning - Processing Delay Definition - Processing ...
-
Delayed Processing - Instore DOES
-
Tax Season Refund Frequently Asked Questions - IRS
-
IRS Tax Refund Status And Date For 2021 Returns
-
Processing Delay Definition - Nasdaq