Skip to content

Commit 4a4930c

Browse files
committed
ESP32 as component provide millis
1 parent 0c2714b commit 4a4930c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/AudioTools/AudioRuntime.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
inline void delay(uint32_t ms){ vTaskDelay(ms / portTICK_PERIOD_MS);}
1212
inline uint32_t millis() {return (xTaskGetTickCount() * portTICK_PERIOD_MS);}
1313
inline void delayMicroseconds(uint32_t ms) {esp_rom_delay_us(ms);}
14-
//inline uint64_t micros() { return xTaskGetTickCount();}
15-
// extern uint64_t micros();
14+
inline uint64_t micros() { return xTaskGetTickCount() * portTICK_PERIOD_MS * 1000;}
1615

1716
#endif
1817

0 commit comments

Comments
 (0)