Skip to content
RED SAGSkills
medium10 pts · first answer countsmathembedded-mathoverflow

Timer check across a counter wrap

A uint32_t millisecond counter wraps after about 49.7 days. Which check keeps working across the wrap?

uint32_t start = millis();
// later
if (/* ? */) { doTask(); }
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions