<?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 time between functions? Timer used.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/32034/how-to-time-between-functions-timer-used</link><description>Hi. 
 I want to know the time difference between functions by using a timer instead of a difference. I&amp;#39;ve looked at app_timer.h, but it&amp;#39;s hard to understand. 
 I do not need the Repeat function and I just want to be able to measure the time. Please help</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 14 Mar 2018 02:36:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/32034/how-to-time-between-functions-timer-used" /><item><title>RE: How to time between functions? Timer used.</title><link>https://devzone.nordicsemi.com/thread/124254?ContentTypeID=1</link><pubDate>Wed, 14 Mar 2018 02:36:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71a0e9ed-4a5d-455d-b8df-08d2bb131cfd</guid><dc:creator>jwcheon</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;Thanks for the answer.&lt;/p&gt;
&lt;p&gt;I succeeded in saving time as I gave you an answer.&lt;br /&gt;However, I wonder what the unit of return value from app_timer_cnt_diff_compute () function is.&lt;/p&gt;
&lt;p&gt;How many return values should be given as 1 second?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to time between functions? Timer used.</title><link>https://devzone.nordicsemi.com/thread/124201?ContentTypeID=1</link><pubDate>Tue, 13 Mar 2018 14:56:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3718947-a6bc-4891-8102-7b2819c4f9af</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know what you mean by &amp;quot;&lt;em&gt;I want to know the time difference between functions by using a timer instead of a difference&amp;quot;.&lt;/em&gt; If you want to get a timestamp before and after the function stars, you can call&amp;nbsp;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.2.0/group__app__timer.html#gae36265bac1480fbb1522f63f70ac369f"&gt;app_timer_cnt_get&lt;/a&gt;. If you want to know the actual time, you need some reference to set the time, and keep track time, for instance as shown in &lt;a href="https://github.com/NordicPlayground/nrf5-calendar-example"&gt;this example&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>