Timing Without delay(): millis() and Simple Schedulers
Make a program do several things at once: why delay() blocks everything, using millis() to measure elapsed time, overflow-safe unsigned subtraction, the blink-without-delay pattern, running several tasks at different intervals, timer wrap-around and clock accuracy, and a small cooperative scheduler.
Timing Without delay(): millis() and Simple Schedulers
Make a program do several things at once: why delay() blocks everything, using millis() to measure elapsed time, overflow-safe unsigned subtraction, the blink-without-delay pattern, running several tasks at different intervals, timer wrap-around and clock accuracy, and a small cooperative scheduler.
In this lesson:
- millis
- delay
- non-blocking
- scheduler
- timing
- overflow
- micros
- multitasking
Official References
This lesson is part of a paid plan
Upgrade to Pro to unlock this course, its labs and its exam.
View Pricing Plans