arduino millis()

C
/*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();
Source

Also in C: