how to print a value every second withou delay arduino code example
Example: arduino millis()
/*Description
Returns the number of milliseconds passed since the Arduino board began running
the current program. This number will overflow (go back to zero), after
approximately 50 days.
Syntax
*/
time = millis();