This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[TDA4M] Time resolution in QNX

Hi,

I was wondering why time resolution was always m-sec on A72 in QNX.

HWAs and other cores(C66, C7x), show using ns. But A72 doesn't.

For example, 

      DSP_C7-1 : avg = 11569usec, min/max = 11557 / 11582 usecs,

             A72_0 : avg = xxxxxxusec, min/max = xx000 / xx000 usecs,

I used tivxPlatformGetTimeInUsecs to measure the time. I wanted to get the time in my specific module, I programmed as below.

void main()
{
   uint64_t time_t = 0;
   uint64_t time_a = 0;
   uint64_t time_b = 0;
   uint64_t time_c = 0;
  
	time_t = tivxPlatformGetTimeInUsecs();
	time_a = tivxPlatformGetTimeInUsecs();
	Process_A();
	time_a = tivxPlatformGetTimeInUsecs() - time_a;
	time_b = tivxPlatformGetTimeInUsecs();
	Process_B();
	time_b = tivxPlatformGetTimeInUsecs() - time_b;
	time_c = tivxPlatformGetTimeInUsecs();
	Process_C();
	time_c = tivxPlatformGetTimeInUsecs() - time_c;
	time_t = tivxPlatformGetTimeInUsecs() - time_t;

   std::cout << time_a; // print : 1000
   std::cout << time_b; // print : 0000
   std::cout << time_c; // print : 1000
   std::cout << time_t; // print : 3000
}

 

Are those values reliable?

Best regards

yongsig.