#include "esp_log.h" #include "esp_timer.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "sdkconfig.h" #include constexpr int StackSize = 1024; #include class TimeTest { private: bool running{}; TickType_t _begin; public: TimeTest() { start(); } void start() { _begin = xTaskGetTickCount(); running = true; } TickType_t getRunTime() { return xTaskGetTickCount() - _begin; } };