# Help needed - ESP32 C2/3/6 analogRead execution time

**URL:** https://community.simplefoc.com/t/help-needed-esp32-c2-3-6-analogread-execution-time/7577
**Category:** developement
**Tags:** esp32c6, esp32, esp32c2, esp32c3
**Created:** [August 21, 2025, 6:55am UTC](https://community.simplefoc.com/t/help-needed-esp32-c2-3-6-analogread-execution-time/7577 "2025-08-21T06:55:05Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Antun\_Skuric](https://community.simplefoc.com/user_avatar/community.simplefoc.com/antun_skuric/32/21_2.png) [@Antun\_Skuric](https://community.simplefoc.com/u/Antun_Skuric)
#### Post date: [August 21, 2025, 6:55am UTC](https://community.simplefoc.com/t/help-needed-esp32-c2-3-6-analogread-execution-time/7577/1 "2025-08-21T06:55:06Z")

</div>

Hey guys,  
Unfortunately, I don’t own one of the **esp32c2/esp32c3/esp32c6** boards I was wondering if some of you guys could help me testing 😃

I would like to know what is the elapsed time of `analogRead` on that board.  
So if someone could let me know what would be the output of this code that would be very very helpful.

```cpp
void setup() {
  Serial.begin(115200);
}

int t = 0;
unsigned int timestamp = micros();

int tmp_read;
void loop() {

  tmp_read = analogRead(A0); // read analog input from any analog pin - feel free to change it 

  if(t++> 10000){ // 10k analog reads
     t = 0;
     Serial.println(micros() - timestamp);
     timestamp = micros();
  }
}

```

Thanks a lot!

---

<div class="post-metadata">

### Author: ![2hry](https://community.simplefoc.com/letter_avatar_proxy/v4/letter/2/ba8739/32.png) [@2hry](https://community.simplefoc.com/u/2hry)
#### Post date: [August 21, 2025, 6:20pm UTC](https://community.simplefoc.com/t/help-needed-esp32-c2-3-6-analogread-execution-time/7577/2 "2025-08-21T18:20:39Z")

</div>

I only have Esp32C3 Supermini.

 ![image](https://community.simplefoc.com/uploads/default/original/2X/c/c89841b4db1c289d9c0f8ed12ad572222bd52c22.png)

Does that help?

---

<div class="post-metadata">

### Author: ![Antun\_Skuric](https://community.simplefoc.com/user_avatar/community.simplefoc.com/antun_skuric/32/21_2.png) [@Antun\_Skuric](https://community.simplefoc.com/u/Antun_Skuric)
#### Post date: [August 21, 2025, 7:19pm UTC](https://community.simplefoc.com/t/help-needed-esp32-c2-3-6-analogread-execution-time/7577/3 "2025-08-21T19:19:25Z")

</div>

Hey @2hry,

That’s exactly what I was searching for. Yeah it’s around 30us per call. That’s a lot.
