esp_timer_get_time gives wrong time after two or three hours

yuvraj.singh
Posts: 1
Joined: Fri Aug 30, 2019 6:25 am

esp_timer_get_time gives wrong time after two or three hours

Postby yuvraj.singh » Fri Aug 30, 2019 6:30 am

I have observed the esp-idf API, esp_timer_get_time reports invalid time after a few hours. I have dumped pseudo-code below:

Code: Select all

/* Wait loop for 5ms */
unsigned long time = esp_timer_get_time() + (5 * 1000);
while(esp_timer_get_time() < time);
tick rate is 1000.

Any idea on this?

Who is online

Users browsing this forum: No registered users and 126 guests