This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Measure Time complexity ?

Think it is some basic question.

I have one ARM7TDMI [LPC 2138] controller operating
on 12 MHz clock freq.

Suppose I have my programe performing 10 Lac comparisons, in one operation [function]. like below

/***************/
FunctionX
{ for(...) // 1000 times for(...) // 1000 times { if (Value > MeanValue) } /* where Value and MeanValue both are unsigned char */
} /*************/

Can any one guide me how I can derive how much time my
function will take to perform 1000*1000 = 10 lac comparisons. ?

Parents Reply Children
No data