Reference+
Name
millis()
Description
Returns the number of milliseconds (thousandths of a second) since starting the sketch. This information is often used for timing animation sequences.
Examples
void draw() { int m = millis(); noStroke(); fill(m % 255); rect(25, 25, 50, 50); }
Syntax
millis()
Return
int

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.