In one of my project, I suddenly could not use CSL_tscRead to get the valid time information, while my other projects still could. It is so confusing. Can any of you could give me a hint on what may be going wrong?
Thanks a lot
Here is the code where I want to estimate the running time by using CSL_tscRead.
CSL_Uint64 start, stop, overhead;
...
// start the counter
start = CSL_tscRead();
memcpy((void *)src_imag, (void *)(src_imag_all+current_frame*INPUT_WIDTH*INPUT_HEIGHT), INPUT_WIDTH*INPUT_HEIGHT);
// stop the counter
overall_time = CSL_tscRead() - start;
...
In the watch window, start and overal_time are all zeros.
For this project, the build options are with full debug information without any optimization.