Provides time and delay functions.
More...
Provides time and delay functions.
#define delayMilliseconds |
( |
|
ms | ) |
delay(ms) |
Pause execution.
- Parameters
-
ms | Duration of delay in milliseconds |
void delay |
( |
uint32_t |
time | ) |
|
Pause execution.
- Parameters
-
time | Duration of delay in milliseconds |
void delayMicroseconds |
( |
uint32_t |
time | ) |
|
Pause execution.
- Parameters
-
time | Duration of delay in microseconds |
unsigned long micros |
( |
void |
| ) |
|
Get the time from clock in microseconds.
- Return values
-
unsigned long | Quantity of microseconds elapsed since clock epoch |
- Note
- Clock epoch will reset every 71 minutes, 47 seconds, 967296 microseconds
-
This function uses ESP8266 system time clock which pauses during sleep. Function is provided for compatibility with Arduino. For date and time functionality, use SystemClock
- See also
- SystemClockClass
unsigned long millis |
( |
void |
| ) |
|
Get the system (up)time in milliseconds.
- Return values
-
unsigned long | Quantity of milliseconds elapsed since clock epoch |
- Note
- Clock epoch will reset every 49 days, 17 hours, 2 minutes, 47 seconds, 296 milliseconds
-
This function uses ESP8266 system time clock which pauses during sleep. Function is provided for compatibility with Arduino. For date and time functionality, use SystemClock
- See also
- SystemClockClass