p5.js Web Editor
https://editor.p5js.org/clement.zheng/full/DI4X05oWR
Click on the canvas to start the timer. Timer runs out after four seconds.
millis(): returns the number of milliseconds (thousandths of a second) since starting the sketch
https://p5js.org/reference/#/p5/millis