millis()

The millis() function in C programming language returns the number of milliseconds since the program started running. It is often used to measure time intervals in programs. The function works by reading the value from a hardware counter inside the microcontroller, which increments at a constant rate. This value is then returned as the number of milliseconds since the program started. By using this function, programmers can measure time intervals and control the timing of their programs with precision.