Hi,
I am looking for a way to get the time since boot with nanoseconds precision. Currently, the best I can do is esp_timer_get_time() which returns time with microsecond precision. I connected my board to an oscilloscope and found out that it takes around 1.29 us for the esp_timer_get_time() function to return time. Can I do better and with higher precision.
esp32 get time with nanoseconds precision
-
- Posts: 9
- Joined: Thu Feb 28, 2019 8:28 pm
Re: esp32 get time with nanoseconds precision
At 240mhz cpu tick is 4ns so you can check ccount or portGET_RUN_TIME_COUNTER_VALUE
Who is online
Users browsing this forum: Baidu [Spider], Google [Bot] and 112 guests