feat(esp8266): Add API to get microseconds

This commit is contained in:
dongheng
2019-03-07 16:06:15 +08:00
parent 09e8cc0f95
commit 7fbb68f4ea
7 changed files with 139 additions and 70 deletions

View File

@ -187,6 +187,13 @@ esp_err_t esp_timer_stop(esp_timer_handle_t timer);
*/
esp_err_t esp_timer_delete(esp_timer_handle_t timer);
/**
* @brief Get time in microseconds since RTOS starts
* @return number of microseconds since RTOS starts starts (this normally
* happens much early during application startup).
*/
int64_t esp_timer_get_time();
#ifdef __cplusplus
}
#endif