# Accessing RX timestamp through C API, also latency

**URL:** <https://discourse.myriadrf.org/t/accessing-rx-timestamp-through-c-api-also-latency/7335>\
**Category:** General Discussion\
**Created:** [17 September 2021 03:12 UTC](https://discourse.myriadrf.org/t/accessing-rx-timestamp-through-c-api-also-latency/7335 "2021-09-17T03:12:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TimBat](https://avatars.discourse-cdn.com/v4/letter/t/ea5d25/32.png) [@TimBat](https://discourse.myriadrf.org/u/TimBat)\
**Post date:** [17 September 2021 03:12 UTC](https://discourse.myriadrf.org/t/accessing-rx-timestamp-through-c-api-also-latency/7335/1 "2021-09-17T03:12:53Z")

</div>

I’m trying to use the LimeSDR for a precisely timed receive only application. I need to know exactly the time of the sample.

I see there is a 64 bit RX timestamp … can this be accessed from LMS C api ?

Does the RX timestamp get generated on board power on and keep counting continuously through start and stop of the stream ? The timestamp comes from the LMS7002M I gather in the stream protocol. Can the LMS7002M RX timestamp be reset via register ?

Even if I get the FPGA to know the time I’m concerned about the variable latency when stream is started and stopped etc.

@andrewback any ideas ?

Thanks Tim

---

<div class="post-metadata">

**Author:** ![andrewback](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@andrewback](https://discourse.myriadrf.org/u/andrewback)\
**Post date:** [18 September 2021 09:59 UTC](https://discourse.myriadrf.org/t/accessing-rx-timestamp-through-c-api-also-latency/7335/2 "2021-09-18T09:59:59Z")

</div>

There is a receive timestamp and this is used by cellular applications. I think it’s generated in the FPGA and not sure if it’s just a sequence that would reset when you stop/start the stream, but @Zack should be able to advise.
