get current time in millis()
Posted: Fri Jul 21, 2017 9:58 am
I try to get the time which the esp32 has power in millis. In the Arduino IDE, the function millis() gives that millis. How can i realize that in the esp idf?
Edit: Well, unsigned long currentMillis = xTaskGetTickCount();
is working, why not unsigned long currentMillis = getTimeSinceStart()?
FreeRTOS also have a similar function calles getTimeSinceStart(). But how can i use this in my project?error: implicit declaration of function 'millis' [-Werror=implicit-function-declaration]
unsigned long currentMillis = millis();
Edit: Well, unsigned long currentMillis = xTaskGetTickCount();
is working, why not unsigned long currentMillis = getTimeSinceStart()?