Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.
Clock functions

Provides time and delay functions. More...

Macros

#define delayMilliseconds(ms)   delay(ms)
 Pause execution. More...
 

Functions

unsigned long millis (void)
 Get the time from clock in milliseconds. More...
 
unsigned long micros (void)
 Get the time from clock in microseconds. More...
 
void delay (uint32_t time)
 Pause execution. More...
 
void delayMicroseconds (uint32_t time)
 Pause execution. More...
 

Detailed Description

Provides time and delay functions.

Macro Definition Documentation

#define delayMilliseconds (   ms)    delay(ms)

Pause execution.

Parameters
msDuration of delay in milliseconds

Function Documentation

void delay ( uint32_t  time)

Pause execution.

Parameters
timeDuration of delay in milliseconds
void delayMicroseconds ( uint32_t  time)

Pause execution.

Parameters
timeDuration of delay in microseconds
unsigned long micros ( void  )

Get the time from clock in microseconds.

Return values
unsigned longQuantity of microseconds elapsed since clock epoch
Note
Clock epoch will reset every 71 minutes, 47 seconds, 967296 microseconds
unsigned long millis ( void  )

Get the time from clock in milliseconds.

Return values
unsigned longQuantity of milliseconds elapsed since clock epoch
Note
Clock epoch will reset every 49 days, 17 hours, 2 minutes, 47 seconds, 296 milliseconds