[][src]Function teensyduino::millis

pub fn millis() -> u32

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.

Returns

Number of milliseconds passed since the program started.

Notes and Warnings

Please note that the return value for millis() is of type u32, logic errors may occur if a programmer tries to do arithmetic with smaller data types such as u16. Even i32 may encounter errors as its maximum value is half that of its unsigned counterpart.

See Also