DEV Community

Denys Shabelnyk
Denys Shabelnyk

Posted on

Time functions in Arduino Uno

Arduino Uno has minimum two functions which help to get current time mark from the beginning: millis() and micros().
millis() returns time marks in milliseconds.
micros() returns time marks in microseconds.
These two functions can be very useful if you work with sensors.
And, do not forget to save output on a variable with type unsigned long
Happy coding!

Top comments (0)