unit test: Measure test wall time with CCOUNT, so it includes time w/ interrupts off

This commit is contained in:
Angus Gratton
2017-03-22 11:50:05 +08:00
parent d8fda48551
commit 8352e7e9ec
3 changed files with 11 additions and 5 deletions

View File

@@ -491,7 +491,7 @@ static esp_err_t IRAM_ATTR spi_flash_translate_rc(SpiFlashOpResult rc)
static inline void dump_counter(spi_flash_counter_t* counter, const char* name)
{
ESP_LOGI(TAG, "%s count=%8d time=%8dms bytes=%8d\n", name,
ESP_LOGI(TAG, "%s count=%8d time=%8dus bytes=%8d\n", name,
counter->count, counter->time, counter->bytes);
}