Hi,
I would like to use the 64 bit timestamp function for benchmarking my code on C6678. Can you please tell me the module to be added in my cfg file and the header file in my source?
Thank you in advance.
regards,
Barath Ramesh
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.
Hi,
I would like to use the 64 bit timestamp function for benchmarking my code on C6678. Can you please tell me the module to be added in my cfg file and the header file in my source?
Thank you in advance.
regards,
Barath Ramesh
I still get the compilation error:
"identifier Types_Timestamp64 is undefined". Also, I am using the function Timestamp_get64() which requires the Timestamp64 struct. Please correct me if I am doing something incorrectly.
Any thoughts?
Thanks for the reply
regards,
Barath Ramesh
Add the following to your .cfg file: xdc.useModule('xdc.runtime.Types');
Then add the following to your *.c: #include <xdc/runtime/Types.h>
Judah
Hi, My name is Ryan.
I have a question about get/set local time.
How can I get the local time as a second and nanosecond.
Which api do I have to use for that? event I tried to use Timestamp_get64 this api.
But, It doesn't work.
So, here is what i want to do.
first, I want to get the local time as a second and nanosecond.
Second, I have time information get from IEEE1588 PHY, it is two parts one of that is second and the other one is nanosecond. I want to update this time to local time. so How can i set this time to local time.
Anyguys know any api for this?
Especially I use c6671 dsp.
Please help me.
Thanks, a lot.
Hi Ryan,
There are no SYS/BIOS APIs that return time in seconds & nanoseconds. What you can do is use the 64-bit timestamps you get from Timestamp_get64() and convert them to seconds & nanosecs. The timestamp provider counts CPU cycles and therefore dividing the 64-bit timestamp by the CPU frequency should give you the time in seconds (multiplying by 1000000000 will give time in nanosecs). Depending on the CPU frequency, it may or may not make sense to convert to nanosecs.
Best,
Ashish
Ryan,
I also wanted to mention that you should start a new thread next time. It makes it easier for us to track your question. If you post a question on an already verified thread, it may get overlooked.
Best,
Ashish