Hello TI,
I would like to measure the run-time of some special code-segments.
Plan is to set starttime on ARP32, than runs some codes on ARP32, switch to VCOP for running some operations and than go back to ARP32 to take further stuff. Than I measure second time and build difference. Thus I would get the complete time. With this difference I calculate my run-time.
I am not sure about the documentation with EVE benchmarking. For general, there are two methods to mesaure run-time.
- With _tsc_gettime(), that read TCSL register.
-
SCTM_Counter with VCOP_BUSY as config
When I look at your example code, I see that differences between start and end times were always multiplicated by 2. Reason of TI is, that VCOP runs twice cycle frequency than ARP32.
But I don't get this reason. The processor runs with this frequency. Why is it important to mulitplicate with 2? And why you do this by both methods? --> Look above
It is possible to get my run-time in milli-seconds with following steps:
-
t_start = _tsc_gettime();Do some stuff on ARP32 and VCOPt_end = _tsc_gettime();(t_end - t_start) / 250.000 = t in msOr I have to do like this ((t_end - t_start)<<1) / 250.000Thank you