pub static second: SecondInternalType
p5.js communicates with the clock on your computer. The second() function returns the current second as a value from 0 - 59.
let s = second(); text('Current second: \n' + s, 5, 50);