[−][src]Static p5_sys::global::millis
pub static millis: MillisInternalType
Returns the number of milliseconds (thousandths of a second) since
starting the sketch (when setup()
is called). This information is often
used for timing events and animation sequences.
Examples
let millisecond = millis();
text('Milliseconds \nrunning: \n' + millisecond, 5, 40);