I am using a TS201s-EZLITE kit. I am attempting to time some code. I expected number of processor clocks to be returned but I appear to be only getting ~10K tics per second. My wallclock time as measured by watch is approximatley 4 seconds. I have measured this loop three ways:
1) CYCLES_START method has ~38000 cycles
2) START_CYCLES_COUNT method has ~45000 cycles
3) clock() method has strange results
I have set the -DDO_CYCLE_COUNTS in the ProjectOptions->Compile->general->additional options
I have attached code. Any help is appreciated.