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.

I have question about set 64bit timestamp.

Hi, All.

I have question about set 64bit timestamp.

I know on c6671 there don't have any API to write my own 64bit timestamp.

So, I have one more question. Can I write the 64bit timestamp directly? I need the function clock in order to save my time and get time from it such as 10 minutes laster exact time. Can I??

But, until now I haven't found any solution about it.

More detaily, i want to make like this get time from ntp once and save it in my local time.

From next time I just want to get the time from my local time not from ntp anymore.

But as i mentioned it I couldn't find any solution to save the time from ntp to my local time.

Do you have any soultion for me.

Thanks, Ryan. 

  • You can write your own custom TimeStampProvider which can be plugged into xdc.runtime.TimeStamp.

    Here are some links for extending TimeStampProvider:

    http://rtsc.eclipse.org/docs-tip/Extending_xdc.runtime_Timestamps

    http://rtsc.eclipse.org/docs-tip/Extending_xdc.runtime_Timestamps/Example_1

    http://rtsc.eclipse.org/docs-tip/Using_xdc.runtime_Timestamps

    Hope it helps,

    Vikram

  • Hi, Vikram.

    First of all, thanks a lot.

    And, I checked the link you gave me.

    But, I couldn't see any write function. there is just read and reset in the link.

    Am I wrong? Please correct me if I am on wrong way.

    Thanks, Ryan.

  • The TimeStamp module does not support write API. Instead, you can implement your now TimeStampProvider module which can setup the local time from ntp during Module_startup() call.

    The links in my previous post explains on how to create a TimeStampProvider.

    Vikram