mirror of
https://github.com/0xFEEDC0DE64/arduino-esp32.git
synced 2025-06-29 03:50:58 +02:00
Use esp_timer_get_time as time source for micros and mills (#1424)
esp_timer_get_time returns monotonic time in microseconds, as a 64-bit number. It can be called from tasks and interrupts, does not use any critical sections/mutexes, and is thread safe.
This commit is contained in:
committed by
Me No Dev
parent
dd639c4a02
commit
93c45af256
@ -14,7 +14,6 @@ void loopTask(void *pvParameters)
|
||||
{
|
||||
setup();
|
||||
for(;;) {
|
||||
micros(); //update overflow
|
||||
loop();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user