Millis()
From Microduino Wiki
unsigned long millis (void)
Millisecond time
Get the time the machines runs for. The recorded time of the system is near to 50 days, and it will start from 0 if over time.
- Warning:
Time is of unsigned long type, If save time in int you will get incorrect result: [Return to Arduino Syntax Manual]