This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

System specific function to retrieve a timestamp (in microseconds)

Hi Team,

Is this system specific function to retrieve a timestamp (in microseconds) function directly available or we need to develop?

Parents
  • Hello,

    I must say as @awneil that I am not exactly sure what you are asking for here. Are you looking to create a timer or use the RTC to keep track of how long time in microseconds that has passed since a certain event, for example? If so, that is possible with the app_timer library or the RTC/TIMER peripheral directly, for example.
    If you are looking to have the peripheral device sync to the time of a central, you may for example use the Current Time Service to pass a timestamp from the central to the peripheral device - please see the CTS Example from the SDK.
    If this was not what you were asking about, please elaborate.

    Best regards,
    Karl

Reply
  • Hello,

    I must say as @awneil that I am not exactly sure what you are asking for here. Are you looking to create a timer or use the RTC to keep track of how long time in microseconds that has passed since a certain event, for example? If so, that is possible with the app_timer library or the RTC/TIMER peripheral directly, for example.
    If you are looking to have the peripheral device sync to the time of a central, you may for example use the Current Time Service to pass a timestamp from the central to the peripheral device - please see the CTS Example from the SDK.
    If this was not what you were asking about, please elaborate.

    Best regards,
    Karl

Children
Related