We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c2714b commit c216a45Copy full SHA for c216a45
src/AudioTools/AudioRuntime.h
@@ -2,6 +2,7 @@
2
3
#include "../AudioConfig.h"
4
5
+
6
#if defined(ESP32_CMAKE)
7
#include "freertos/FreeRTOS.h"
8
#include "freertos/task.h"
@@ -11,8 +12,7 @@
11
12
inline void delay(uint32_t ms){ vTaskDelay(ms / portTICK_PERIOD_MS);}
13
inline uint32_t millis() {return (xTaskGetTickCount() * portTICK_PERIOD_MS);}
14
inline void delayMicroseconds(uint32_t ms) {esp_rom_delay_us(ms);}
-//inline uint64_t micros() { return xTaskGetTickCount();}
15
-// extern uint64_t micros();
+inline uint64_t micros() { return xTaskGetTickCount() * portTICK_PERIOD_MS * 1000;}
16
17
#endif
18
0 commit comments