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

How can I Count clock cycle consumption for a Piece of C Code

Hello
I am using C51 Compiler for AT89C51.
How can I Count clock cycle consumption for a Piece of C Code e.g
P1=(int)(((sin((2*PI)*(((double) (k++))/MAX))+1)/2)*BYTE);

?????????
How many clks it will take ???
????????

0