simple millis arduino code example

Example 1: 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();

Example 2: 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()

/*
Returns
Number of milliseconds passed since the program started.
Return Data type: unsigned long.
*/

Tags:

C Example