I want to count the CPU cycles consumed by my C program when run on crossbow stargare sensor (that have intergrated Intel PXA 255 400MHZ processor). How can I do this? I guess there must be some C program with functions startCounting and endCounting. My scenio should be like this.
My program or code....
Can any one guid me how can I write or get this startCounting and endCounting. I guess there must be some programs already there that have this functionality.