Skip to content

Commit 01b5617

Browse files
authored
Merge pull request #698 from Arnold-n/patch-2
Update millis.adoc
2 parents 8cb5288 + 272d3dd commit 01b5617

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Language/Functions/Time/millis.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ void loop() {
6666
=== Notes and Warnings
6767
Please note that the return value for millis() is of type `unsigned long`, logic errors may occur if a programmer tries to do arithmetic with smaller data types such as `int`. Even signed `long` may encounter errors as its maximum value is half that of its unsigned counterpart.
6868

69+
Reconfiguration of the microcontroller's timers may result in inaccurate `millis()` readings. The "Arduino AVR Boards" and "Arduino megaAVR Boards" cores use Timer0 to generate `millis()`. The "Arduino ARM (32-bits) Boards" and "Arduino SAMD (32-bits ARM Cortex-M0+) Boards" cores use the SysTick timer.
70+
6971
--
7072
// HOW TO USE SECTION ENDS
7173

0 commit comments

Comments
 (0)