Forums

Discrepancy in Cycles Count

Started by Helios December 12, 2007
Hi,

I am using two techniques to measure the CPU time of a function in
CCS.

For the first technique I use the clock() function before and after
the function and do not forget to subtract the overhead.

For the second technique I use the Profile Setup/Viewer tools of CCS.
Specifically, I am using the Functions option in the Ranges tab.

The two techniques give me significantly different readings. Why?

Thanks