Docs
Support
Blog
Projects
Store
Console
IDE
Particle
Millis() and rollover tutorial
Tutorials
dheerajdake
October 25, 2017, 7:42pm
15
Tried it on
gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4)
Apple LLVM version 9.0.0 (clang-900.0.38)
Target: x86_64-apple-darwin16.7.0
ARM GCC 541
Particle cloud compiler
All results were same.
Check and correct based of sensor many sensors- logic structure
show post in topic
Related topics
Topic
Replies
Views
Activity
Handling millis() rollover
General
5
4518
July 7, 2015
Micros() rolling over after 59.652323 seconds, not 71 minutes [SOLVED]
Troubleshooting
47
14406
August 18, 2015
What in the world? Some randomness with millis() and subtraction
Troubleshooting
9
2039
October 8, 2016
On off intervals, overflow safe
Firmware
5
728
June 17, 2018
When (3 > 120000) resolves to TRUE (with unsigned longs, millis() and dark magic)
Firmware
boron
8
753
January 9, 2022