beginner

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.

60 min

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

🔒 This lesson is part of a paid plan

This lesson is part of the Pro plan. Upgrade to unlock the full lesson, the labs and the exam.

Upgrade Now

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