6 years, 10 months ago.

[Urgent] Estimation Time Help!

Hola

I'm using Cortex m4 chip now. I made some Methods for my project. But, I need to estimation time that made my own methods.

How to calculate estimation time of methods in mbed?

thank you :)

1 Answer

6 years, 10 months ago.

You may need to clarify what time you are asking about. I'll assume you are asking how to tell how long it takes to execute a particular set of instructions. You can use a Timer object to do this.

Timer t;

t.reset();
t.start();
// Your code
t.stop();
printf("Time = %d",t.read_us());

https://os.mbed.com/docs/v5.7/reference/timer.html

Accepted Answer

Thank you Graham S !

posted by PARK JAICHANG 22 Jan 2018