diff --git a/CMakeLists.txt b/CMakeLists.txt index 3aaea7c..197c7c0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,7 +18,6 @@ set(headers ) set(sources - src/espchrono_impl.cpp src/espstrutils.cpp src/taskutils.cpp ) diff --git a/src/espchrono_impl.cpp b/src/espchrono_impl.cpp deleted file mode 100644 index 48d4509..0000000 --- a/src/espchrono_impl.cpp +++ /dev/null @@ -1,25 +0,0 @@ -// local includes -#include "espchrono.h" - -// system includes -#include - -// esp-idf inlcludes -#include - -using namespace std::chrono_literals; - -// actual implementations used on the ESP32 - -auto espchrono::utc_clock::now() noexcept -> time_point -{ - timeval tv; - gettimeofday(&tv, NULL); - seconds32 seconds{tv.tv_sec}; - return time_point{seconds}; -} - -auto espchrono::millis_clock::now() noexcept -> time_point -{ - return time_point{std::chrono::floor(std::chrono::microseconds{esp_timer_get_time()})}; -}