New micros clock

This commit is contained in:
2022-01-19 18:20:46 +01:00
parent 0b138ba5b7
commit ae5ee03396

View File

@ -106,7 +106,7 @@ esp_err_t ConfigManager<ConfigContainer>::init(const char *ns)
auto after = espchrono::millis_clock::now();
ESP_LOGI(TAG, "initializing NVS took %lldms", std::chrono::milliseconds{after-before}.count());
ESP_LOGI(TAG, "initializing NVS took %lldms", std::chrono::floor<std::chrono::milliseconds>(after-before).count());
before = espchrono::millis_clock::now();
@ -120,7 +120,7 @@ esp_err_t ConfigManager<ConfigContainer>::init(const char *ns)
after = espchrono::millis_clock::now();
ESP_LOGI(TAG, "loading all config params took %lldms", std::chrono::milliseconds{after-before}.count());
ESP_LOGI(TAG, "loading all config params took %lldms", std::chrono::floor<std::chrono::milliseconds>(after-before).count());
return success ? ESP_OK : ESP_FAIL;
}