This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Program Execution Time

Hi,

Please find below some part of my code.

Part: A

Vr.Mean = _IQ18sqrt(Vr.Mean);
Vr.RMS = _IQ9mpy(Vr.Mean,1);
Vr.RMS = _IQ18mpy(Vr.RMS, SinglePhase_FSMul);

Part: B

Ir.Mean = _IQ18sqrt(Ir.Mean);
Ir.RMS = _IQ9mpy(Ir.Mean,1);
Ir.RMS = _IQ18mpy(Ir.RMS, SinglePhase_FSMulCrnt);

Both are identical, 

1. When I was use only Part:A or Part:B in my code and run the program, Entire code execution time was 37 uSeconds

but the problem is:

When I use both Part: A and Part:B in my code, Entire code takes 387 uSeconds...!!!!!!!!!!!!!!!!!!!!!!!

I cant able to figure out it?

Please help me.

Thanks

**Attention** This is a public forum