second()
Input / Time & DateDescription
Returns the current second as a value from 0 to 59.
Syntax
int second()
Parameters
None
Returns
intRelated
Under the Hood
From Processing.h:
inline int second() { std::time_t t=std::time(nullptr); return std::localtime(&t)->tm_sec; }
static int second() { std::time_t t=std::time(nullptr); return std::localtime(&t)->tm_sec; }