<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>How to get milliseconds elapsed in a fast, simple method - without APIs.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/33352/how-to-get-milliseconds-elapsed-in-a-fast-simple-method---without-apis</link><description>Hi folks, I&amp;#39;m receiving a special timestamp over bluetooth, and I want to write it to an external memory. I want the time at which it was written to the memory to be as precise as it can. 
 I thought of getting the current SysTicks when the message was</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 14 Apr 2019 12:15:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/33352/how-to-get-milliseconds-elapsed-in-a-fast-simple-method---without-apis" /><item><title>RE: How to get milliseconds elapsed in a fast, simple method - without APIs.</title><link>https://devzone.nordicsemi.com/thread/181961?ContentTypeID=1</link><pubDate>Sun, 14 Apr 2019 12:15:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d8cc3d8-02ac-4638-9902-3b1b2e2120db</guid><dc:creator>kobyfr</dc:creator><description>&lt;p&gt;see my answer on how to activate the time-stamp output in NRF logs,&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/23662/how-to-add-timestamp-in-rtt-viewer-using-nrf-log-module"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I guess you can dive into the log code responsible for formatting the time-stamp,and see how they extract the millisecond portion of it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get milliseconds elapsed in a fast, simple method - without APIs.</title><link>https://devzone.nordicsemi.com/thread/128270?ContentTypeID=1</link><pubDate>Fri, 13 Apr 2018 14:01:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0942f167-c228-4885-a3de-8001c98f2a4b</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;well SysTick only counts when the CPU is&amp;nbsp;running, so in any mode you&amp;#39;d usually want to use a Nordic chip in, which is &amp;#39;sleep as much as possible&amp;#39;, it&amp;#39;s not ticking fairly often. I&amp;#39;m assuming that&amp;#39;s what the OP is referring to although if they are doing these measurements in code they can be sure is constantly executing .. SysTick will be counting, although possibly at the internal RC frequency.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get milliseconds elapsed in a fast, simple method - without APIs.</title><link>https://devzone.nordicsemi.com/thread/128257?ContentTypeID=1</link><pubDate>Fri, 13 Apr 2018 13:21:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:908a0663-0060-4a35-8519-846d0d96b43e</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I haven&amp;#39;t heard about any issues with the SysTick and nRF52840.&amp;nbsp;Do you mind linking to the posts you are referring to?&lt;/p&gt;
&lt;p&gt;Anyway, would it be possible to simply start a timer or RTC when you receive your timestamp and then use it exactly as you would with the systick?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>