diff --git a/Language/Functions/Time/millis.adoc b/Language/Functions/Time/millis.adoc index 14dcbdbd6..c66cdeaaa 100644 --- a/Language/Functions/Time/millis.adoc +++ b/Language/Functions/Time/millis.adoc @@ -4,20 +4,15 @@ categories: [ "Functions" ] subCategories: [ "Time" ] --- - - - - = millis() - // OVERVIEW SECTION STARTS [#overview] -- [float] === Description -Returns the number of milliseconds since the Arduino board began running the current program. This number will overflow (go back to zero), after approximately 50 days. +Returns the number of milliseconds passed since the Arduino board began running the current program. This number will overflow (go back to zero), after approximately 50 days. [%hardbreaks] @@ -28,11 +23,11 @@ Returns the number of milliseconds since the Arduino board began running the cur [float] === Parameters -Nothing +None [float] === Returns -Number of milliseconds since the program started (unsigned long) +Number of milliseconds passed since the program started (unsigned long) -- // OVERVIEW SECTION ENDS @@ -47,7 +42,7 @@ Number of milliseconds since the program started (unsigned long) [float] === Example Code // Describe what the example code is all about and add relevant code ►►►►► THIS SECTION IS MANDATORY ◄◄◄◄◄ -The code reads the milllisecond since the Arduino board began. +This example code prints on the serial port the number of milliseconds passed since the Arduino board started running the code itself. [source,arduino] ---- @@ -68,7 +63,7 @@ void loop() { [float] === Notes and Warnings -Please note that the return value for millis() is an unsigned long, logic errors may occur if a programmer tries to do arithmetic with smaller data types such as int's. Even signed long may encounter errors as its maximum value is half that of its unsigned counterpart. +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. -- // HOW TO USE SECTION ENDS