#pragma once #ifdef PLATFORM_ESP32 #include #endif #ifdef PLATFORM_NATIVE #include inline unsigned long millis() { static auto timeOfFirstCall = std::chrono::steady_clock::now(); const auto timePoint = std::chrono::steady_clock::now(); return std::chrono::duration_cast(timePoint - timeOfFirstCall).count(); } #endif