Skip to content

Add micros method to get microseconds since boot #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 12, 2023
Merged

Add micros method to get microseconds since boot #1

merged 3 commits into from
Mar 12, 2023

Conversation

vickash
Copy link
Contributor

@vickash vickash commented Mar 7, 2023

ESP32::System.micros gets microseconds since boot using esp_timer_get_time(). Would need to add the esp_timer component to the main idf project folder for it to work.

@pandax381
Copy link
Member

Thanks!
Sorry for the delay in checking.

For ESP-IDF v5.0, it was necessary to specify REQUIRES esp_timer in idf_component_register().
I will add it to the CMake definition file of mruby-esp32.

@pandax381
Copy link
Member

I have made a few changes to the naming.

@pandax381 pandax381 merged commit f2d6c15 into mruby-esp32:master Mar 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants